From 19cff934acb6893f12c1617e99c3131439374513 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Tue, 10 Oct 2017 08:25:19 -0400 Subject: geo-rep: Fix passive brick's last sync time Passive brick's stime was not updated to the status file immediately after updating the brick root. As a result the last sync time was showing '0' until it finishes first crawl if passive worker becomes active after restart. Fix is to update the status file immediately after upgrading the brick root. > Change-Id: I248339497303bad20b7f5a1d42ab44a1fe6bca99 > BUG: 1500346 > Signed-off-by: Kotresh HR (cherry picked from commit f18a47ee7e6e06c9a9a8893aef7957f23a18de53) Change-Id: I248339497303bad20b7f5a1d42ab44a1fe6bca99 BUG: 1500853 Signed-off-by: Kotresh HR --- geo-replication/syncdaemon/master.py | 1 + 1 file changed, 1 insertion(+) (limited to 'geo-replication') diff --git a/geo-replication/syncdaemon/master.py b/geo-replication/syncdaemon/master.py index 2987bca0601..b1dcdfceec2 100644 --- a/geo-replication/syncdaemon/master.py +++ b/geo-replication/syncdaemon/master.py @@ -576,6 +576,7 @@ class GMasterCommon(object): if brick_stime < cluster_stime: self.slave.server.set_stime( self.FLAT_DIR_HIERARCHY, self.uuid, cluster_stime) + self.upd_stime(cluster_stime) # Purge all changelogs available in processing dir # less than cluster_stime proc_dir = os.path.join(self.tempdir, -- cgit