Skip to content

Commit

Permalink
decrease frequency of random shrink of ancient append vec (solana-lab…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored and nickfrosty committed Jan 4, 2023
1 parent 1071b5e commit a152888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit a152888

Please sign in to comment.