From 94260c93a144b52964a27ddc9eaef869a3e8f354 Mon Sep 17 00:00:00 2001 From: Ajeet Jha Date: Mon, 2 Jun 2014 14:49:07 +0530 Subject: features/changelog: skipping empty changelogs in history Empty changelgs are unlinked and htime-update is bypassed while publishing partially written changelog. Change-Id: I1533ad431e4fbf592d2f38837fce782932d01e9c BUG: 1105466 Signed-off-by: Ajeet Jha Reviewed-on: http://review.gluster.org/7949 Tested-by: Gluster Build System Reviewed-by: Venky Shankar Tested-by: Venky Shankar --- xlators/features/changelog/src/changelog-helpers.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xlators/features/changelog/src/changelog-helpers.c') diff --git a/xlators/features/changelog/src/changelog-helpers.c b/xlators/features/changelog/src/changelog-helpers.c index 984106b75e6..8efe7dc4695 100644 --- a/xlators/features/changelog/src/changelog-helpers.c +++ b/xlators/features/changelog/src/changelog-helpers.c @@ -166,7 +166,8 @@ htime_update (xlator_t *this, if (sys_fsetxattr (priv->htime_fd, HTIME_KEY, x_value, strlen (x_value), XATTR_REPLACE)) { gf_log (this->name, GF_LOG_ERROR, - "Htime xattr updation failed"); + "Htime xattr updation failed, " + "reason (%s)",strerror (errno)); goto out; } @@ -209,6 +210,7 @@ changelog_rollover_changelog (xlator_t *this, if (ret && (errno == ENOENT)) { ret = 0; + goto out; } if (ret) { -- cgit