path: root/xlators
diff options
authorAnand Avati <>2011-08-06 18:00:49 +0530
committerAnand Avati <>2011-08-06 05:49:05 -0700
commit2d54c7805f37cb0c91dd292ea3e1a1a55b2dce08 (patch)
treee12e51502498c6617b90db53d352138439e186a0 /xlators
parenta166a2bfc125c5775ce9ded30f83c60107c3fa8a (diff)
cluster/dht: clear local->cached_subvol when switching to do_fresh_lookup
The presence of local->cached_subvol makes dht_lookup_everywhere_done behave as though it was a lookup on a file where linkfile needs to be recreated. In a fresh lookup, local->cached_subvol should be NULL. Change-Id: Ie6bd6ad536def03d970526d51e20c6daeb00922b BUG: 3317 Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Anand Avati <>
Diffstat (limited to 'xlators')
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index b06add7..8e688d7 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -1229,6 +1229,7 @@ dht_lookup (call_frame_t *frame, xlator_t *this,
dht_layout_unref (this, local->layout);
local->layout = NULL;
+ local->cached_subvol = NULL;
goto do_fresh_lookup;