summaryrefslogtreecommitdiffstats
path: root/tools/glusterfind/src/libgfchangelog.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/glusterfind/src/libgfchangelog.py')
-rw-r--r--tools/glusterfind/src/libgfchangelog.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/glusterfind/src/libgfchangelog.py b/tools/glusterfind/src/libgfchangelog.py
index e54a16a4742..44e8fd5a61a 100644
--- a/tools/glusterfind/src/libgfchangelog.py
+++ b/tools/glusterfind/src/libgfchangelog.py
@@ -26,6 +26,12 @@ def raise_oserr():
raise ChangelogException(errn, os.strerror(errn))
+def cl_init():
+ ret = libgfc.gf_changelog_init(None)
+ if ret == -1:
+ raise_oserr()
+
+
def cl_register(brick, path, log_file, log_level, retries=0):
ret = libgfc.gf_changelog_register(brick, path, log_file,
log_level, retries)