decrease frequency of random shrink of ancient append vec (#29462)

This commit is contained in:
Jeff Washington (jwash) 2023-01-02 15:29:04 -06:00 committed by GitHub
parent bf93a1e13f
commit 9615965219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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!(