diff options
author | Venky Shankar <vshankar@redhat.com> | 2015-03-20 03:13:27 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2015-03-27 02:04:09 -0700 |
commit | d331c3196392dd6cf857b79388780bf03b802392 (patch) | |
tree | 25714e70b35516609fea087c0e10f10689a07ee6 /geo-replication/syncdaemon/libgfchangelog.py | |
parent | d15dedd8c99e84018a50130a8ffe5e971b9f7bd4 (diff) |
geo-rep: Use gfchangelog context init API
With the RPC based changes to {libgf}changelog, changelog_init
is required before changelog_register.
Change-Id: Id125b2bd2e51aaaffa22ecab463dfb739c50d83c
Signed-off-by: Venky Shankar <vshankar@redhat.com>
BUG: 1170075
Reviewed-on: http://review.gluster.org/9993
Reviewed-by: Saravanakumar Arumugam <sarumuga@redhat.com>
Tested-by: Saravanakumar Arumugam <sarumuga@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'geo-replication/syncdaemon/libgfchangelog.py')
-rw-r--r-- | geo-replication/syncdaemon/libgfchangelog.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/geo-replication/syncdaemon/libgfchangelog.py b/geo-replication/syncdaemon/libgfchangelog.py index ac5ff05bdfa..1d580caf6e8 100644 --- a/geo-replication/syncdaemon/libgfchangelog.py +++ b/geo-replication/syncdaemon/libgfchangelog.py @@ -31,6 +31,12 @@ class Changes(object): return getattr(cls.libgfc, call) @classmethod + def cl_init(cls): + ret = cls._get_api('gf_changelog_init')(None) + if ret == -1: + cls.raise_changelog_err() + + @classmethod def cl_register(cls, brick, path, log_file, log_level, retries=0): ret = cls._get_api('gf_changelog_register')(brick, path, log_file, |