summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/lib/src/gf-changelog.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/changelog/lib/src/gf-changelog.c')
-rw-r--r--xlators/features/changelog/lib/src/gf-changelog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/features/changelog/lib/src/gf-changelog.c b/xlators/features/changelog/lib/src/gf-changelog.c
index a2257a66930..18eeac3e1a4 100644
--- a/xlators/features/changelog/lib/src/gf-changelog.c
+++ b/xlators/features/changelog/lib/src/gf-changelog.c
@@ -118,11 +118,12 @@ gf_changelog_open_dirs (gf_changelog_t *gfc)
gfc->gfc_working_dir);
ret = recursive_rmdir (gfc->gfc_current_dir);
- if (ret)
+ if (ret) {
gf_log (this->name, GF_LOG_ERROR,
"Failed to rmdir: %s, err: %s",
gfc->gfc_current_dir, strerror (errno));
goto out;
+ }
ret = mkdir_p (gfc->gfc_current_dir, 0600, _gf_false);
if (ret)
@@ -141,11 +142,12 @@ gf_changelog_open_dirs (gf_changelog_t *gfc)
gfc->gfc_working_dir);
ret = recursive_rmdir (gfc->gfc_processing_dir);
- if (ret)
+ if (ret) {
gf_log (this->name, GF_LOG_ERROR,
"Failed to rmdir: %s, err: %s",
gfc->gfc_processing_dir, strerror (errno));
goto out;
+ }
ret = mkdir_p (gfc->gfc_processing_dir, 0600, _gf_false);
if (ret)