From fd3662166f8d7e8247bc535f0816bb3abea01889 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 28 Sep 2010 04:30:38 +0000 Subject: distribute: Propagate -1 op_ret on failed fop Signed-off-by: Shehjar Tikoo Signed-off-by: Vijay Bellur 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 --- xlators/cluster/dht/src/dht-common.c | 1 + 1 file changed, 1 insertion(+) 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)); -- cgit