Skip to content

Commit

Permalink
update stats when existing record is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo Nieto committed Jan 11, 2024
1 parent 38b7ad5 commit 3a4d8a5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,9 @@ public boolean delete(Data key, CallerProvenance provenance) {
mapDataStore.remove(key, now, null);
}
} else {
return removeRecord(key, record, now, provenance, null) != null;
Object oldValue = removeRecord(key, record, now, provenance, null);
updateStatsOnRemove(now);
return oldValue != null;
}
return false;
}
Expand Down

0 comments on commit 3a4d8a5

Please sign in to comment.