Skip to content

Commit

Permalink
only compact deleted range during clip
Browse files Browse the repository at this point in the history
  • Loading branch information
rkhachatryan committed Jan 30, 2024
1 parent 4829b14 commit bb25e4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion db/db_impl/db_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6215,7 +6215,10 @@ Status DBImpl::ClipColumnFamily(ColumnFamilyHandle* column_family,
// last level to compact to and that range tombstones are not dropped
// during non-bottommost compactions, calling CompactRange() on these two
// ranges may not clear all range tombstones.
status = CompactRange(compact_options, nullptr, nullptr);
status = CompactRange(compact_options, column_family, nullptr, &begin_key);
if (status.ok()) {
status = CompactRange(compact_options, column_family, &end_key, nullptr);
}
}
return status;
}
Expand Down

0 comments on commit bb25e4b

Please sign in to comment.