Don't double-filter replication jobs
ObjectReplicator.collect_jobs() takes and correctly applies the various overrides, so there's no need to check the returned jobs against the overrides. Change-Id: I2a59b26410d1732a5f2c8f1f32e397d77550860e
This commit is contained in:
parent
0a4d1b7e22
commit
de38b727b4
@ -745,11 +745,6 @@ class ObjectReplicator(Daemon):
|
||||
override_policies=override_policies)
|
||||
for job in jobs:
|
||||
current_nodes = job['nodes']
|
||||
if override_devices and job['device'] not in override_devices:
|
||||
continue
|
||||
if override_partitions and \
|
||||
job['partition'] not in override_partitions:
|
||||
continue
|
||||
dev_path = check_drive(self.devices_dir, job['device'],
|
||||
self.mount_check)
|
||||
if not dev_path:
|
||||
|
Loading…
Reference in New Issue
Block a user