From 729dec7456505cc1e56605db689c02c29730c074 Mon Sep 17 00:00:00 2001 From: jeff washington Date: Mon, 2 Jan 2023 11:18:08 -0600 Subject: [PATCH] decrease frequency of random shrink of ancient append vec --- 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 8d526982da87f0..9b952aba43f57a 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -4397,7 +4397,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!(