summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-syncop.h
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2015-05-08 09:53:50 +0530
committerVijay Bellur <vbellur@redhat.com>2015-05-20 02:30:28 -0700
commit988db25572b94220a7cc69bcc3040c2a77b8e9a5 (patch)
tree6a362d5e6dbea34624a49dc61fa30deaebb4f54b /xlators/mgmt/glusterd/src/glusterd-syncop.h
parent61cfcf65f0d4ad70fc8a47395c583d4b5bf1efbe (diff)
glusterd: populate errstr if gd_syncop_submit_request fails
Change-Id: Ie4a3edef5d553fc07de53b46f9485c46a4305245 BUG: 1219732 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/10659 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Tested-by: Krishnan Parthasarathi <kparthas@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-syncop.h')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-syncop.h3
1 files changed, 3 insertions, 0 deletions
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)