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>
This commit is contained in:
Kaushal M 2013-04-23 12:11:00 +05:30 committed by Vijay Bellur
parent fa227c0834
commit fd36cabb0d

View File

@ -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;