summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2013-05-16 15:05:09 +0530
committerVijay Bellur <vbellur@redhat.com>2013-05-16 19:27:26 -0700
commit5780e274c78aab671e5fb72d66fec23f90576e51 (patch)
treec382a10d88f4c07bff3d728a823a636e4fd9d4d5 /xlators/mgmt/glusterd/src
parent692257695fa75ab1264277e33c91709391e2f693 (diff)
glusterd: Set op_errstr to error string received from peer
... in case of volume op failure on remote host Change-Id: I7177dc02369dffa82f217496559532d18b7c7c7a BUG: 963628 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/5018 Reviewed-by: Amar Tumballi <amarts@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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-syncop.c b/xlators/mgmt/glusterd/src/glusterd-syncop.c
index 41530090ec4..aa1391df86e 100644
--- a/xlators/mgmt/glusterd/src/glusterd-syncop.c
+++ b/xlators/mgmt/glusterd/src/glusterd-syncop.c
@@ -789,6 +789,8 @@ stage_done:
ret = args.op_ret;
if (dict_get_str (op_ctx, "errstr", &errstr) == 0)
*op_errstr = gf_strdup (errstr);
+ else if (args.errstr)
+ *op_errstr = gf_strdup (args.errstr);
out:
if (rsp_dict)
@@ -862,6 +864,8 @@ commit_done:
ret = args.op_ret;
if (dict_get_str (op_ctx, "errstr", &errstr) == 0)
*op_errstr = gf_strdup (errstr);
+ else if (args.errstr)
+ *op_errstr = gf_strdup (args.errstr);
out:
if (!ret)