diff options
author | Kaushal M <kaushal@redhat.com> | 2013-04-23 12:11:00 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-05-12 23:38:49 -0700 |
commit | fd36cabb0db4139cba97fc75c6169b57ebea3e9d (patch) | |
tree | f332645f0ba08ffba0b019bc243480ea3d32d5a0 /xlators/mgmt | |
parent | fa227c08341224ac95e45a710f7dbfbb3835a8fe (diff) |
glusterd: Fix uuid to hostname conversion for 'volume status'
Change-Id: I46c41c29c2d11652f6d8ccd5637be0ac9774fc1d
BUG: 927648
Signed-off-by: Kaushal M <kaushal@redhat.com>
Reviewed-on: http://review.gluster.org/4873
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')
-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 79b45a2b81a..59df582db77 100644 --- a/xlators/mgmt/glusterd/src/glusterd-syncop.c +++ b/xlators/mgmt/glusterd/src/glusterd-syncop.c @@ -843,9 +843,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; @@ -866,6 +864,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; |