Skip to content

Commit

Permalink
Fix unused in release
Browse files Browse the repository at this point in the history
  • Loading branch information
pdillinger committed Nov 15, 2024
1 parent 1a2aa4f commit e937f3a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions db/db_impl/db_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,6 @@ Status DBImpl::RegisterRecordSeqnoTimeWorker(const ReadOptions& read_options,

uint64_t min_preserve_seconds = std::numeric_limits<uint64_t>::max();
uint64_t max_preserve_seconds = std::numeric_limits<uint64_t>::min();
bool mapping_was_empty = false;
std::vector<SuperVersionContext> sv_contexts;
{
InstrumentedMutexLock l(&mutex_);
Expand Down Expand Up @@ -878,7 +877,6 @@ Status DBImpl::RegisterRecordSeqnoTimeWorker(const ReadOptions& read_options,
if (old_mapping_size != seqno_to_time_mapping_.Size()) {
InstallSeqnoToTimeMappingInSV(&sv_contexts);
}
mapping_was_empty = seqno_to_time_mapping_.Empty();
}

// clean up outside db mutex
Expand Down Expand Up @@ -926,8 +924,6 @@ Status DBImpl::RegisterRecordSeqnoTimeWorker(const ReadOptions& read_options,
assert(!is_new_db || last_seqno_zero);
if (is_new_db && last_seqno_zero) {
// Pre-allocate seqnos and pre-populate historical mapping
assert(mapping_was_empty);

// We can simply modify these, before writes are allowed
constexpr uint64_t kMax = kMaxSeqnoTimePairsPerSST;
versions_->SetLastAllocatedSequence(kMax);
Expand Down

0 comments on commit e937f3a

Please sign in to comment.