shrink debug (#13089)

This commit is contained in:
sakridge 2020-10-23 08:05:19 -07:00 committed by GitHub
parent ffb9a49769
commit 7d2729f6bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

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