From 5780e274c78aab671e5fb72d66fec23f90576e51 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Thu, 16 May 2013 15:05:09 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/5018 Reviewed-by: Amar Tumballi Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/mgmt/glusterd/src/glusterd-syncop.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-syncop.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-syncop.c b/xlators/mgmt/glusterd/src/glusterd-syncop.c index 41530090e..aa1391df8 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) -- cgit