Skip to content

Commit

Permalink
Ensure deleted keys are not dropped when aggregating
Browse files Browse the repository at this point in the history
  • Loading branch information
lbschanno committed Apr 16, 2024
1 parent 20030aa commit 5fef9df
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ private void updateCache() throws IOException {
if (!workKey.isDeleted()) {
// Aggregate the current entry.
aggregateCurrent();
} else {
// Add the deleted entry to the cache so that it is available for scanning, but do not include it as part of the aggregation.
cache.put(super.getTopKey(), super.getTopValue());
}

// Advance to the next entry from the source.
Expand Down

0 comments on commit 5fef9df

Please sign in to comment.