From 50bf70fe5a538cbcffef058126a4d25155c19bf4 Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Mon, 28 Sep 2015 15:34:44 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/12238 Reviewed-by: Raghavendra G Tested-by: Gluster Build System Tested-by: NetBSD Build System --- xlators/cluster/dht/src/dht-helper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xlators') 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, -- cgit