summaryrefslogtreecommitdiffstats
path: root/geo-replication/syncdaemon/master.py
diff options
context:
space:
mode:
authorVenky Shankar <vshankar@redhat.com>2014-01-08 10:22:48 +0530
committerVijay Bellur <vbellur@redhat.com>2014-02-06 01:55:58 -0800
commit4d7764a73f4c504ebd369c61f46e569ebc62ecc9 (patch)
tree038e1b765504c03e54e0c8df2bfd51ef902b9c7d /geo-replication/syncdaemon/master.py
parentaa7b0c640818df25b4f0297b1931ff52a77121bf (diff)
gsyncd / geo-rep: invoke changelog process() on non-empty change list
Change-Id: Ida4890abdc90d683a4a83127a1573bbb3829ea23 BUG: 1036539 Signed-off-by: Venky Shankar <vshankar@redhat.com> Reviewed-on: http://review.gluster.org/6793 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'geo-replication/syncdaemon/master.py')
-rw-r--r--geo-replication/syncdaemon/master.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/geo-replication/syncdaemon/master.py b/geo-replication/syncdaemon/master.py
index c17e6a2ff38..0817d7fe775 100644
--- a/geo-replication/syncdaemon/master.py
+++ b/geo-replication/syncdaemon/master.py
@@ -1063,7 +1063,8 @@ class GMasterChangelogMixin(GMasterCommon):
self.master.server.changelog_done(pr)
changes.remove(pr)
logging.debug('processing changes %s' % repr(changes))
- self.process(changes)
+ if changes:
+ self.process(changes)
def register(self):
(workdir, logfile) = self.setup_working_dir()