From 1fceab7e54b4a7f18181ed6bbbdea065d402bff1 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Fri, 8 May 2015 09:53:50 +0530 Subject: glusterd: populate errstr if gd_syncop_submit_request fails Backport of http://review.gluster.org/10659 Change-Id: Ie4a3edef5d553fc07de53b46f9485c46a4305245 BUG: 1223318 Signed-off-by: Atin Mukherjee Reviewed-on: http://review.gluster.org/10659 Tested-by: Gluster Build System Tested-by: NetBSD Build System Reviewed-by: Krishnan Parthasarathi Tested-by: Krishnan Parthasarathi (cherry picked from commit 988db25572b94220a7cc69bcc3040c2a77b8e9a5) Reviewed-on: http://review.gluster.org/10838 Tested-by: NetBSD Build System --- xlators/mgmt/glusterd/src/glusterd-syncop.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xlators/mgmt/glusterd/src/glusterd-syncop.h b/xlators/mgmt/glusterd/src/glusterd-syncop.h index c8303a04d5e..f3425c2f538 100644 --- a/xlators/mgmt/glusterd/src/glusterd-syncop.h +++ b/xlators/mgmt/glusterd/src/glusterd-syncop.h @@ -33,6 +33,9 @@ (xdrproc_t)xdrproc); \ if (!ret) \ synctask_yield (stb->task); \ + else \ + gf_asprintf (&stb->errstr, "%s failed. Check log file" \ + " for more details", (prog)->progname); \ synclock_lock (&conf->big_lock); \ } while (0) -- cgit