summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorN Balachandran <nbalacha@redhat.com>2015-10-20 15:53:15 +0530
committerJeff Darcy <jdarcy@redhat.com>2015-10-21 03:02:22 -0700
commit9710f58e5874bccb4b328abef80ea226ccf9c798 (patch)
tree850b9f6aa6339cf61091ad9a8fa76f3e1db1da63
parenta7b57f8a0d24d0ed1cd3a8700e52f70181000038 (diff)
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 <nbalacha@redhat.com> Reviewed-on: http://review.gluster.org/12401 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
-rw-r--r--xlators/cluster/dht/src/dht-inode-read.c2
1 files changed, 1 insertions, 1 deletions
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);