summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
index 9bbc2e618df..4f296c52a95 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -798,11 +798,13 @@ glusterd_store_delete_volume (glusterd_volinfo_t *volinfo)
else
ret = unlink (path);
+ if (ret)
+ gf_log ("", GF_LOG_INFO, "errno:%d (%s)", errno,
+ strerror (errno));
+
gf_log ("", GF_LOG_INFO, "%s %s",
ret?"Failed to remove":"Removed",
entry->d_name);
- if (ret)
- gf_log ("", GF_LOG_INFO, "errno:%d", errno);
stat_failed:
memset (path, 0, sizeof(path));
glusterd_for_each_entry (entry, dir);