do not dump_recon_cache on limited obj replic
Change-Id: I38e38607ba9c5cf331c216e4c81582d23c58eeca
This commit is contained in:
1 changed files with 4 additions and 3 deletions
@@ -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
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.