Skip to content

Commit

Permalink
Small refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
pdillinger committed Jan 3, 2025
1 parent 95b8bf1 commit 05c0357
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion db/compaction/compaction_outputs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,6 @@ Status CompactionOutputs::AddRangeDels(
auto tombstone = it->Tombstone();
auto kv = tombstone.Serialize();
// Filter out by seqno for per-key placement
// TODO: should this go lower down?
if (tombstone.seq_ < keep_seqno_range.first ||
tombstone.seq_ >= keep_seqno_range.second) {
continue;
Expand Down
6 changes: 0 additions & 6 deletions db/internal_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,6 @@ class InternalStats {
this->num_output_files += stats.num_output_files;
this->num_output_files_blob += stats.num_output_files_blob;
}

bool IsEmpty() const {
return num_output_records == 0 && bytes_written == 0 &&
bytes_written_blob == 0 && num_output_files == 0 &&
num_output_files_blob == 0;
}
};

// Per level compaction stats. comp_stats_[level] stores the stats for
Expand Down

0 comments on commit 05c0357

Please sign in to comment.