diff options
author | Anand Avati <avati@gluster.com> | 2011-08-06 18:00:49 +0530 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-08-06 05:49:05 -0700 |
commit | 2d54c7805f37cb0c91dd292ea3e1a1a55b2dce08 (patch) | |
tree | e12e51502498c6617b90db53d352138439e186a0 | |
parent | a166a2bfc125c5775ce9ded30f83c60107c3fa8a (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: http://review.gluster.com/186
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@gluster.com>
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 1 |
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 b06add7aad6..8e688d741aa 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; } |