From fca25fbd0d24b6eb944415174a67d1774b5d2479 Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Wed, 21 Oct 2015 16:50:41 +0530 Subject: cluster/dht : op_ret not set correctly in dht_fsync_cbk local->op_ret was not set correctly in dht_fsync_cbk in case the file was being migrated > Change-Id: If73ae04368ea0c7f6868c8704dfc2deb2faee753 > Signed-off-by: N Balachandran > Reviewed-on: http://review.gluster.org/12401 > Tested-by: Gluster Build System > Reviewed-by: Raghavendra G > Reviewed-by: Jeff Darcy (cherry picked from commit 9710f58e5874bccb4b328abef80ea226ccf9c798) Change-Id: I2addb86083c1d8305cf91e0b0385deeb227216c8 BUG: 1272036 Signed-off-by: N Balachandran Reviewed-on: http://review.gluster.org/12409 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Dan Lambright Tested-by: Dan Lambright --- xlators/cluster/dht/src/dht-inode-read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/cluster/dht/src/dht-inode-read.c b/xlators/cluster/dht/src/dht-inode-read.c index 3480151734f..b832c95baaa 100644 --- a/xlators/cluster/dht/src/dht-inode-read.c +++ b/xlators/cluster/dht/src/dht-inode-read.c @@ -807,7 +807,7 @@ dht_fsync_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int op_ret, goto out; } - local->op_errno = op_errno; + local->op_ret = op_ret; inode = local->fd->inode; dht_inode_ctx_get_mig_info (this, inode, &src_subvol, &dst_subvol); -- cgit