From 2ec8ea8769e943d3987dd80f8f6937359bcccf34 Mon Sep 17 00:00:00 2001 From: Nithya Balachandran Date: Fri, 11 Sep 2015 22:18:03 +0530 Subject: cluster/dht : Propagate op_errno on failure Fixed issue where dht_selfheal_layout_lock_cbk does not propagate the op_errno. Change-Id: I0b968339db65d2969e36e64407eeb724cc6516bd BUG: 1262438 Signed-off-by: Nithya Balachandran Reviewed-on: http://review.gluster.org/12165 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Raghavendra G --- xlators/cluster/dht/src/dht-selfheal.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/cluster/dht/src/dht-selfheal.c') diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c index ab15ca6d66d..997f694681b 100644 --- a/xlators/cluster/dht/src/dht-selfheal.c +++ b/xlators/cluster/dht/src/dht-selfheal.c @@ -306,6 +306,7 @@ dht_selfheal_layout_lock_cbk (call_frame_t *frame, void *cookie, xlator_t *this, } if (op_ret < 0) { + local->op_errno = op_errno; goto err; } -- cgit