mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-18 05:30:37 +00:00
add comment on not-need to be 100% accurate about max_layer_size
This commit is contained in:
committed by
Joonas Koivunen
parent
75759f709f
commit
38d3061143
@@ -506,6 +506,10 @@ async fn extend_lru_candidates(
|
||||
return ControlFlow::Break(());
|
||||
}
|
||||
|
||||
// If one of the timelines becomes `!is_active()` during the iteration,
|
||||
// for example because we're shutting down, then `max_layer_size` can be too small.
|
||||
// That's OK. This code only runs under a disk pressure situation, and being
|
||||
// a little unfair to tenants during shutdown in such a situation is tolerable.
|
||||
let mut max_layer_size: Option<u64> = None;
|
||||
for tl in tenant.list_timelines() {
|
||||
if !tl.is_active() {
|
||||
|
||||
Reference in New Issue
Block a user