From 440ffb55f08beabc7f2ee98f22852ce103613b30 Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Wed, 8 Sep 2010 05:18:24 +0000 Subject: mgmt/glusterd: Various replace brick changes. Signed-off-by: Pavan Vilas Sondur Signed-off-by: Vijay Bellur BUG: 1235 (Bug for all pump/migrate commits) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1235 --- xlators/cluster/afr/src/pump.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'xlators/cluster/afr/src') diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c index 5e2c2d43aca..977de07dcd9 100644 --- a/xlators/cluster/afr/src/pump.c +++ b/xlators/cluster/afr/src/pump.c @@ -469,12 +469,23 @@ gf_pump_traverse_directory (loc_t *loc) entry_loc.ino = iatt.ia_ino; entry_loc.inode->ino = iatt.ia_ino; + memcpy (entry_loc.inode->gfid, iatt.ia_gfid, 16); gf_log (this->name, GF_LOG_DEBUG, "lookup %s => %"PRId64, entry_loc.path, iatt.ia_ino); + ret = syncop_lookup (this, &entry_loc, NULL, + &iatt, &xattr_rsp, &parent); + + + gf_log (this->name, GF_LOG_DEBUG, + "second lookup ret=%d: %s => %"PRId64, + ret, + entry_loc.path, + iatt.ia_ino); + pump_update_resume_state (this, entry_loc.path); if (!IS_ENTRY_CWD(entry->d_name) && -- cgit