diff options
author | N Balachandran <nbalacha@redhat.com> | 2015-10-21 16:50:41 +0530 |
---|---|---|
committer | Dan Lambright <dlambrig@redhat.com> | 2015-10-25 06:41:31 -0700 |
commit | fca25fbd0d24b6eb944415174a67d1774b5d2479 (patch) | |
tree | 7375369865f998ddbadecb70acfc40c2189e79d3 /xlators | |
parent | 89a68feb5261de2238e7a23fece74e2f19220334 (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
the file was being migrated
> Change-Id: If73ae04368ea0c7f6868c8704dfc2deb2faee753
> 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>
(cherry picked from commit 9710f58e5874bccb4b328abef80ea226ccf9c798)
Change-Id: I2addb86083c1d8305cf91e0b0385deeb227216c8
BUG: 1272036
Signed-off-by: N Balachandran <nbalacha@redhat.com>
Reviewed-on: http://review.gluster.org/12409
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Dan Lambright <dlambrig@redhat.com>
Tested-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/cluster/dht/src/dht-inode-read.c | 2 |
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 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); |