From 9710f58e5874bccb4b328abef80ea226ccf9c798 Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Tue, 20 Oct 2015 15:53:15 +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 of files being migrated Change-Id: If73ae04368ea0c7f6868c8704dfc2deb2faee753 BUG: 1273372 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 --- xlators/cluster/dht/src/dht-inode-read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster/dht/src') diff --git a/xlators/cluster/dht/src/dht-inode-read.c b/xlators/cluster/dht/src/dht-inode-read.c index 02265fd2e85..ad284ae4be8 100644 --- a/xlators/cluster/dht/src/dht-inode-read.c +++ b/xlators/cluster/dht/src/dht-inode-read.c @@ -802,7 +802,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