summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-store.c
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2011-03-23 21:44:13 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-25 09:24:11 -0700
commit2339b9e87e8e48df9b64ba016949a2f40b50324e (patch)
tree4c7c801a6b3ee42670558c5049e50dc2dc5a4423 /xlators/mgmt/glusterd/src/glusterd-store.c
parent1180b2136f6cf014a08f072f8ecc4aac2b69580f (diff)
mgmt/glusterd: Avoid printing no-error message to user when op fails
- Prints the peer hostname/uuid where the error happened in case the peer does not return an error string. Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2585 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2585
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-store.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
index 96af05d802e..e1db5f4546e 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -1912,6 +1912,7 @@ glusterd_store_retrieve_peers (xlator_t *this)
ret = glusterd_friend_add (hostname, 0, state, &uuid,
NULL, &peerinfo, 1, &args);
+ GF_FREE (hostname);
if (ret)
goto out;