diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/glusterfind/src/changelog.py | 1 | ||||
-rw-r--r-- | tools/glusterfind/src/libgfchangelog.py | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tools/glusterfind/src/changelog.py b/tools/glusterfind/src/changelog.py index 262cb696c78..eb73635fb32 100644 --- a/tools/glusterfind/src/changelog.py +++ b/tools/glusterfind/src/changelog.py @@ -198,6 +198,7 @@ def get_changes(brick, hash_dir, log_file, end, args): of gfid to 'gfid_list' file. """ try: + libgfchangelog.cl_init() libgfchangelog.cl_register(brick, hash_dir, log_file, CHANGELOG_LOG_LEVEL, CHANGELOG_CONN_RETRIES) except libgfchangelog.ChangelogException as e: 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) |