summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/src/changelog-helpers.c
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2015-05-08 20:38:33 +0530
committerNiels de Vos <ndevos@redhat.com>2015-05-08 08:37:46 -0700
commit004e34ffcaa7a53348479488b0716979f8a958df (patch)
tree69725def4a0919d5c228d758781e6a5c2525e971 /xlators/features/changelog/src/changelog-helpers.c
parent1b42cb507c3f72225f03a4715e051d9eb8c08e43 (diff)
features/changelog: Fixing compilation issue
This issue introduced due to manual rebase. Change-Id: I0589f4a0a1270190340f419b8022d6483bcf853d Signed-off-by: Aravinda VK <avishwan@redhat.com> BUG: 1219479 Reviewed-on: http://review.gluster.org/10685 Reviewed-by: Niels de Vos <ndevos@redhat.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Tested-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/10686
Diffstat (limited to 'xlators/features/changelog/src/changelog-helpers.c')
-rw-r--r--xlators/features/changelog/src/changelog-helpers.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/features/changelog/src/changelog-helpers.c b/xlators/features/changelog/src/changelog-helpers.c
index 17c085fe047..bfe7a17a87e 100644
--- a/xlators/features/changelog/src/changelog-helpers.c
+++ b/xlators/features/changelog/src/changelog-helpers.c
@@ -356,6 +356,8 @@ cl_is_empty (xlator_t *this, int fd)
int encoding = -1;
char buffer[1024] = {0,};
struct stat stbuf = {0,};
+ int major_version = -1;
+ int minor_version = -1;
ret = fstat (fd, &stbuf);
if (ret) {
@@ -371,7 +373,8 @@ cl_is_empty (xlator_t *this, int fd)
goto out;
}
- CHANGELOG_GET_ENCODING (fd, buffer, 1024, encoding, elen);
+ CHANGELOG_GET_HEADER_INFO (fd, buffer, 1024, encoding,
+ major_version, minor_version, elen);
if (elen == stbuf.st_size) {
ret = 1;