From 988db25572b94220a7cc69bcc3040c2a77b8e9a5 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 Change-Id: Ie4a3edef5d553fc07de53b46f9485c46a4305245 BUG: 1219732 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 --- xlators/mgmt/glusterd/src/glusterd-syncop.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/mgmt') diff --git a/xlators/mgmt/glusterd/src/glusterd-syncop.h b/xlators/mgmt/glusterd/src/glusterd-syncop.h index 87a3c76f9fb..1163677d626 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