Merge "Don't run periodic_share_replica_update() on active replicas"
This commit is contained in:
commit
2287838bde
|
@ -2603,7 +2603,8 @@ class ShareManager(manager.SchedulerDependentManager):
|
|||
# Filter only non-active replicas belonging to this backend
|
||||
def qualified_replica(r):
|
||||
return (share_utils.extract_host(r['host']) ==
|
||||
share_utils.extract_host(self.host))
|
||||
share_utils.extract_host(self.host) and
|
||||
r['replica_state'] != constants.REPLICA_STATE_ACTIVE)
|
||||
|
||||
replicas = list(filter(lambda x: qualified_replica(x), replicas))
|
||||
for replica in replicas:
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
fixes:
|
||||
- Fixed periodic_share_replica_update() to skip active replicas similarly to
|
||||
periodic_share_replica_snapshot_update(). The intention is to check on
|
||||
non-active replicas, that can be 'in_sync', 'out_of_sync' or in 'error'
|
||||
state.
|
Loading…
Reference in New Issue