summaryrefslogtreecommitdiffstats
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:58:10 -0800
commita2355deb62f647e257f3ffc8a33f9d831f211964 (patch)
tree37d9da968d8a54be9602c038ecbce2c31261275c
parent7289fa908b4355a148adb610534aceee8761a547 (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 Reviewed-on: http://review.gluster.org/6860 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Aravinda VK <avishwan@redhat.com>
-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()