From 961596521904c5ea20ba2d4202eaad7ac353ad06 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Mon, 2 Jan 2023 15:29:04 -0600 Subject: [PATCH] decrease frequency of random shrink of ancient append vec (#29462) --- runtime/src/accounts_db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index cf5ce4d238..02f28e571e 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -4392,7 +4392,7 @@ impl AccountsDb { } else { false }; - if is_candidate || (can_randomly_shrink && thread_rng().gen_range(0, 100) == 0) { + if is_candidate || (can_randomly_shrink && thread_rng().gen_range(0, 10000) == 0) { // we are a candidate for shrink, so either append us to the previous append vec // or recreate us as a new append vec and eliminate the dead accounts info!(