From 38f7e9a979e30316b85681daf125e816907dd1e7 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 23 Oct 2020 17:02:00 +0000 Subject: [PATCH] shrink debug (#13089) (#13109) (cherry picked from commit 7d2729f6bd798bcdbed3464b2685a6a170e0625c) Co-authored-by: sakridge --- runtime/src/accounts_db.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 5660f9f0f5..307016f2e6 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -975,7 +975,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 { "" }, @@ -983,7 +984,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, );