decrease frequency of random shrink of ancient append vec (#29462)
This commit is contained in:
parent
bf93a1e13f
commit
9615965219
|
@ -4392,7 +4392,7 @@ impl AccountsDb {
|
||||||
} else {
|
} else {
|
||||||
false
|
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
|
// 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
|
// or recreate us as a new append vec and eliminate the dead accounts
|
||||||
info!(
|
info!(
|
||||||
|
|
Loading…
Reference in New Issue