remove unused param (#26096)

This commit is contained in:
Jeff Washington (jwash) 2022-06-21 14:10:41 -04:00 committed by GitHub
parent 8dd9a045dd
commit 7a3dc3a57b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -67,12 +67,12 @@ impl BucketMapHolderStats {
}
}
pub fn inc_insert(&self, _bin: usize) {
pub fn inc_insert(&self) {
self.inserts.fetch_add(1, Ordering::Relaxed);
self.count.fetch_add(1, Ordering::Relaxed);
}
pub fn inc_delete(&self, _bin: usize) {
pub fn inc_delete(&self) {
self.deletes.fetch_add(1, Ordering::Relaxed);
self.count.fetch_sub(1, Ordering::Relaxed);
}

View File

@ -268,7 +268,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
fn remove_if_slot_list_empty_value(&self, slot_list: SlotSlice<T>) -> bool {
if slot_list.is_empty() {
self.stats().inc_delete(self.bin);
self.stats().inc_delete();
true
} else {
false
@ -417,7 +417,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
previous_slot_entry_was_cached,
);
if !already_existed {
self.stats().inc_insert(self.bin);
self.stats().inc_insert();
}
} else {
// go to in-mem cache first
@ -434,7 +434,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
disk_entry
} else {
// not on disk, so insert new thing
self.stats().inc_insert(self.bin);
self.stats().inc_insert();
new_value.into_account_map_entry(&self.storage)
};
assert!(new_value.dirty());
@ -676,7 +676,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
self.update_entry_stats(m, found_in_mem);
let stats = self.stats();
if !already_existed {
stats.inc_insert(self.bin);
stats.inc_insert();
} else {
Self::update_stat(&stats.updates_in_mem, 1);
}