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
committerKrishnan Parthasarathi <kparthas@redhat.com>2015-07-06 22:24:43 -0700
commit1fceab7e54b4a7f18181ed6bbbdea065d402bff1 (patch)
tree1c19b6c36d45d85ffcf248695a051bb795a0b95a /xlators/mgmt/glusterd/src/glusterd-syncop.h
parentb71f9a506dbc880b13018d7698dc0c86c8e5ba98 (diff)
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 <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> (cherry picked from commit 988db25572b94220a7cc69bcc3040c2a77b8e9a5) Reviewed-on: http://review.gluster.org/10838 Tested-by: NetBSD Build System <jenkins@build.gluster.org>
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 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)