From 7434529236ef83718afe031490de38abf413eab0 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Fri, 22 Jul 2011 16:31:32 +0530 Subject: dht: use gfid of the actual file while recreating the proper linkfiles Change-Id: Ia024fd136c936c5a73e2cdacdb738e5d2912d619 BUG: 2464 Reviewed-on: http://review.gluster.com/78 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/cluster/dht/src/dht-common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 112d4231dc3..de977287650 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -528,6 +528,9 @@ dht_lookup_everywhere_cbk (call_frame_t *frame, void *cookie, xlator_t *this, goto unlock; } + /* non linkfile GFID takes precedence */ + uuid_copy (local->gfid, buf->ia_gfid); + if (is_dir) { local->dir_count++; @@ -546,7 +549,7 @@ dht_lookup_everywhere_cbk (call_frame_t *frame, void *cookie, xlator_t *this, gf_log (this->name, GF_LOG_DEBUG, "found on %s file %s", subvol->name, loc->path); - + dht_iatt_merge (this, &local->postparent, postparent, subvol); } else { -- cgit