summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/lib/examples/c/get-changes-multi.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/changelog/lib/examples/c/get-changes-multi.c')
-rw-r--r--xlators/features/changelog/lib/examples/c/get-changes-multi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/features/changelog/lib/examples/c/get-changes-multi.c b/xlators/features/changelog/lib/examples/c/get-changes-multi.c
index 8f23c81c2a0..ae404bc7ad6 100644
--- a/xlators/features/changelog/lib/examples/c/get-changes-multi.c
+++ b/xlators/features/changelog/lib/examples/c/get-changes-multi.c
@@ -70,6 +70,10 @@ main (int argc, char **argv)
brick++;
fill_brick_spec (brick, "/export/z2/zwoop");
+ ret = gf_changelog_init (NULL);
+ if (ret)
+ goto error_return;
+
ret = gf_changelog_register_generic ((struct gf_brick_spec *)bricks, 2,
1, "/tmp/multi-changes.log", 9,
NULL);