summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorN Balachandran <nbalacha@redhat.com>2015-09-28 15:34:44 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-09-28 22:37:11 -0700
commit50bf70fe5a538cbcffef058126a4d25155c19bf4 (patch)
treec9a6865137812501b8ea42ef017dd191ddfd0a91
parent9d31a55b7c4c4e1aeedfdc74eadbf36902f7bcd9 (diff)
cluster/dht : FOP handling during file migration
An earlier patch introduced a bug in the FOP migration code. Fixed the issue. Change-Id: Ib7d8d3f54ddd455b7f53b0b2e3a82a9e942ba1f9 BUG: 1266872 Signed-off-by: N Balachandran <nbalacha@redhat.com> Reviewed-on: http://review.gluster.org/12238 Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org>
-rw-r--r--xlators/cluster/dht/src/dht-helper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-helper.c b/xlators/cluster/dht/src/dht-helper.c
index 221fe033ed6..d68fa091c94 100644
--- a/xlators/cluster/dht/src/dht-helper.c
+++ b/xlators/cluster/dht/src/dht-helper.c
@@ -1255,8 +1255,9 @@ dht_rebalance_inprogress_task (void *data)
tmp_loc.inode = inode_ref (inode);
gf_uuid_copy (tmp_loc.gfid, inode->gfid);
}
- /* lookup on dst */
- ret = syncop_lookup (dst_node, &local->loc, &stbuf, NULL,
+
+ /* lookup on dst */
+ ret = syncop_lookup (dst_node, &tmp_loc, &stbuf, NULL,
NULL, NULL);
if (ret) {
gf_msg (this->name, GF_LOG_ERROR, -ret,