summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-09-28 04:30:38 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-28 04:50:48 -0700
commitfd3662166f8d7e8247bc535f0816bb3abea01889 (patch)
tree680b29ab948a3236c022856de23f06b7b27b3b1e /xlators/cluster
parent059c05561e1df6e24229e7adf613f868fa0275b9 (diff)
distribute: Propagate -1 op_ret on failed fop
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1717 (dht_attr_cbk does not propagate op_ret on failed fop causing nfs crash) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1717
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/dht/src/dht-common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index 46685c9e2f4..2c8a535477c 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -1094,6 +1094,7 @@ dht_truncate_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
{
if (op_ret == -1) {
local->op_errno = op_errno;
+ local->op_ret = -1;
gf_log (this->name, GF_LOG_DEBUG,
"subvolume %s returned -1 (%s)",
prev->this->name, strerror (op_errno));