set approx store count at generate index time (#33240)
This commit is contained in:
parent
093ae61e85
commit
cb310a310a
|
@ -9508,6 +9508,9 @@ impl AccountsDb {
|
||||||
);
|
);
|
||||||
store.count_and_status.write().unwrap().0 = entry.count;
|
store.count_and_status.write().unwrap().0 = entry.count;
|
||||||
store.alive_bytes.store(entry.stored_size, Ordering::SeqCst);
|
store.alive_bytes.store(entry.stored_size, Ordering::SeqCst);
|
||||||
|
store
|
||||||
|
.approx_store_count
|
||||||
|
.store(entry.count, Ordering::Relaxed);
|
||||||
} else {
|
} else {
|
||||||
trace!("id: {} clearing count", id);
|
trace!("id: {} clearing count", id);
|
||||||
store.count_and_status.write().unwrap().0 = 0;
|
store.count_and_status.write().unwrap().0 = 0;
|
||||||
|
|
Loading…
Reference in New Issue