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:22 -0700 |
commit | 4e116e2af014754e88170986820312e755617476 (patch) | |
tree | b8a1d1c7ce57bf0da72dc2a89c75a0807eb48a6d /xlators | |
parent | bed8d32a52b2a58b905e91828c3155cba2544058 (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/187
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@gluster.com>
Diffstat (limited to 'xlators')
-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 c4bc0b4dfd9..e0ba10dd281 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -1033,6 +1033,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; } |