diff options
author | Kotresh HR <khiremat@redhat.com> | 2015-07-01 12:06:42 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2015-07-02 06:16:34 -0700 |
commit | 2f5355f76a8168bc504cba8237f0825fc181fce8 (patch) | |
tree | dc4ec955962624138102e9a2a41ec7cdd1074963 /xlators/features/changelog/lib/examples/c/get-changes.c | |
parent | 8def0f28c908224359a04ec2f658a3ba241c7249 (diff) |
libgfchangelog: Fix example programs
Incorporate the new API 'gf_changelog_init'
introduced in libgfchangelog which should
be called before 'gf_changelog_register'.
Change-Id: I10a9dd5ff3ecc64fd61dcb6b1aa53739e0bdeedd
BUG: 1238063
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Reviewed-on: http://review.gluster.org/11479
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/features/changelog/lib/examples/c/get-changes.c')
-rw-r--r-- | xlators/features/changelog/lib/examples/c/get-changes.c | 6 |
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); |