set approx store count at generate index time (#33240)

This commit is contained in:
Jeff Washington (jwash) 2023-09-13 14:13:46 -07:00 committed by GitHub
parent 093ae61e85
commit cb310a310a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -9508,6 +9508,9 @@ impl AccountsDb {
);
store.count_and_status.write().unwrap().0 = entry.count;
store.alive_bytes.store(entry.stored_size, Ordering::SeqCst);
store
.approx_store_count
.store(entry.count, Ordering::Relaxed);
} else {
trace!("id: {} clearing count", id);
store.count_and_status.write().unwrap().0 = 0;