summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/lib/examples/c/get-changes.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/changelog/lib/examples/c/get-changes.c')
-rw-r--r--xlators/features/changelog/lib/examples/c/get-changes.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/features/changelog/lib/examples/c/get-changes.c b/xlators/features/changelog/lib/examples/c/get-changes.c
index 0b2808c7e35..ef766c566b6 100644
--- a/xlators/features/changelog/lib/examples/c/get-changes.c
+++ b/xlators/features/changelog/lib/examples/c/get-changes.c
@@ -39,6 +39,12 @@ main (int argc, char ** argv)
ssize_t changes = 0;
char fbuf[PATH_MAX] = {0,};
+ ret = gf_changelog_init (NULL);
+ if (ret) {
+ handle_error ("Init failed");
+ goto out;
+ }
+
/* get changes for brick "/home/vshankar/export/yow/yow-1" */
ret = gf_changelog_register ("/export/z1/zwoop",
"/tmp/scratch", "/tmp/change.log", 9, 5);