summaryrefslogtreecommitdiffstats
path: root/geo-replication/syncdaemon
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2017-10-10 08:25:19 -0400
committerKotresh HR <khiremat@redhat.com>2017-10-11 15:16:35 +0000
commitf18a47ee7e6e06c9a9a8893aef7957f23a18de53 (patch)
tree678cdfe7c258f34f17598dbb82f2c637f472624d /geo-replication/syncdaemon
parent34d52445a9058310d7512c9bcc8c01e709aac1ef (diff)
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 <khiremat@redhat.com>
Diffstat (limited to 'geo-replication/syncdaemon')
-rw-r--r--geo-replication/syncdaemon/master.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/geo-replication/syncdaemon/master.py b/geo-replication/syncdaemon/master.py
index 794e32cabed..4c1a529a3ed 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,