mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
fix: subscribe before evicting
This commit is contained in:
@@ -485,10 +485,10 @@ impl LayerInner {
|
||||
|
||||
assert!(self.have_remote_client);
|
||||
|
||||
self.wanted_evicted.store(true, Ordering::Release);
|
||||
|
||||
let mut rx = self.status.subscribe();
|
||||
|
||||
self.wanted_evicted.store(true, Ordering::Release);
|
||||
|
||||
if self.get().is_none() {
|
||||
// it was not evictable in the first place
|
||||
// our store to the wanted_evicted does not matter; it will be reset by next download
|
||||
|
||||
Reference in New Issue
Block a user