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 gnapoli23 committed Jan 10, 2023
1 parent 06a291d commit cafebdd
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 cafebdd

Please sign in to comment.