do not dump_recon_cache on limited obj replic

Change-Id: I38e38607ba9c5cf331c216e4c81582d23c58eeca
This commit is contained in:
David Goetz
2012年10月15日 14:21:02 -07:00
parent 89845bc811
commit b52538074e

View File

@@ -647,9 +647,10 @@ class ObjectReplicator(Daemon):
override_partitions=override_partitions)
total = (time.time() - start) / 60
self.logger.info(
_("Object replication complete. (%.02f minutes)"), total)
dump_recon_cache({'object_replication_time': total},
self.rcache, self.logger)
_("Object replication complete (once). (%.02f minutes)"), total)
if not (override_partitions or override_devices):
dump_recon_cache({'object_replication_time': total},
self.rcache, self.logger)
def run_forever(self, *args, **kwargs):
self.logger.info(_("Starting object replicator in daemon mode."))
Reference in New Issue
openstack/swift
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.