doc: hint that usage_assumed is modified in the loop

This commit is contained in:
Christian Schwarz
2023-03-28 17:47:11 +02:00
parent 0c10e6d3e7
commit 07c44f9151

View File

@@ -385,9 +385,9 @@ pub async fn disk_usage_eviction_task_iteration_impl<U: Usage>(
// phase2: evict victims batched by timeline
// achieved post-eviction usage according to internal accounting
// After the loop, `usage_assumed` is the post-eviction usage,
// according to internal accounting.
let mut usage_assumed = usage_pre;
let mut evictions_failed = LayerCount::default();
for (timeline, batch) in batched {
let tenant_id = timeline.tenant_id;