shrink debug (#13089) (#13108)

(cherry picked from commit 7d2729f6bd)

Co-authored-by: sakridge <sakridge@gmail.com>
This commit is contained in:
mergify[bot]
2020-10-23 16:14:09 +00:00
committed by GitHub
parent 7d66cba7f4
commit 184a56aae7

View File

@ -868,7 +868,8 @@ impl AccountsDB {
} }
if alive_count == stored_count && stores.values().len() == 1 { if alive_count == stored_count && stores.values().len() == 1 {
trace!( trace!(
"shrink_stale_slot: not able to shrink at all{}: {} / {}", "shrink_stale_slot ({}): not able to shrink at all: alive/stored: {} / {} {}",
slot,
alive_count, alive_count,
stored_count, stored_count,
if forced { " (forced)" } else { "" }, if forced { " (forced)" } else { "" },
@ -876,7 +877,8 @@ impl AccountsDB {
return 0; return 0;
} else if (alive_count as f32 / stored_count as f32) >= 0.80 && !forced { } else if (alive_count as f32 / stored_count as f32) >= 0.80 && !forced {
trace!( trace!(
"shrink_stale_slot: not enough space to shrink: {} / {}", "shrink_stale_slot ({}): not enough space to shrink: {} / {}",
slot,
alive_count, alive_count,
stored_count, stored_count,
); );