summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/lib/examples/c/get-history.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/changelog/lib/examples/c/get-history.c')
-rw-r--r--xlators/features/changelog/lib/examples/c/get-history.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/features/changelog/lib/examples/c/get-history.c b/xlators/features/changelog/lib/examples/c/get-history.c
index 2e1ff3c767f..ee3ec0ad100 100644
--- a/xlators/features/changelog/lib/examples/c/get-history.c
+++ b/xlators/features/changelog/lib/examples/c/get-history.c
@@ -40,6 +40,12 @@ main (int argc, char ** argv)
char fbuf[PATH_MAX] = {0,};
unsigned long end_ts = 0;
+ ret = gf_changelog_init (NULL);
+ if (ret) {
+ handle_error ("init failed");
+ goto out;
+ }
+
ret = gf_changelog_register ("/export/z1/zwoop",
"/tmp/scratch_v1", "/tmp/changes.log",
9, 5);