diff options
author | Kaushal M <kaushal@redhat.com> | 2013-04-23 12:11:00 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-05-14 04:12:50 -0700 |
commit | e6b4c04709a14bff0379ccfc414b8feec35f78fa (patch) | |
tree | 6f79735ebaedfe30034c4e0f988cd6af16c7a5b5 /xlators | |
parent | 2c80052dbe5aca895a13597e36add51f796000e0 (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')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-syncop.c | 7 |
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; |