summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c2
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index 28812538f55..7ecebd051c0 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -1130,7 +1130,7 @@ brick_validation:
hostname) && !strcmp(brickinfo->path,
tmpbrkinfo->path))) {
snprintf(err_str, 1048, "Brick %s already"
- "in use", brick);
+ " in use", brick);
gf_log ("glusterd", GF_LOG_ERROR, "%s",
err_str);
err_ret = 1;
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
index 122cb73202b..5f65cf1cfa2 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -1184,6 +1184,7 @@ glusterd_store_update_peerinfo (glusterd_peerinfo_t *peerinfo)
gf_log ("", GF_LOG_DEBUG, "Destroying store handle");
glusterd_store_handle_destroy (peerinfo->shandle);
peerinfo->shandle = NULL;
+ ret = remove (hostname_path);
}
}