summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
authorKaushal M <kaushal@redhat.com>2013-04-23 12:11:00 +0530
committerVijay Bellur <vbellur@redhat.com>2013-05-14 04:12:50 -0700
commite6b4c04709a14bff0379ccfc414b8feec35f78fa (patch)
tree6f79735ebaedfe30034c4e0f988cd6af16c7a5b5 /xlators/mgmt/glusterd/src
parent2c80052dbe5aca895a13597e36add51f796000e0 (diff)
glusterd: Fix uuid to hostname conversion for 'volume status'
BUG: 927648 Change-Id: Ic016e9d1f090372329a8a2e530dac5fc6ed6c5ae Signed-off-by: Kaushal M <kaushal@redhat.com> Reviewed-on: http://review.gluster.org/4874 Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-syncop.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-syncop.c b/xlators/mgmt/glusterd/src/glusterd-syncop.c
index 5730dc48a41..68720bdda9c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-syncop.c
+++ b/xlators/mgmt/glusterd/src/glusterd-syncop.c
@@ -809,9 +809,7 @@ commit_done:
gf_asprintf (op_errstr, OPERRSTR_COMMIT_FAIL,
hostname);
goto out;
- } else {
- glusterd_op_modify_op_ctx (op, op_ctx);
- }
+ }
if (!npeers) {
ret = 0;
@@ -832,6 +830,9 @@ commit_done:
*op_errstr = gf_strdup (errstr);
out:
+ if (!ret)
+ glusterd_op_modify_op_ctx (op, op_ctx);
+
if (rsp_dict)
dict_unref (rsp_dict);
return ret;