Skip to content

Commit

Permalink
MemTable::Add: first_seqno_.compare_exchange_weak to earliest_seqno_
Browse files Browse the repository at this point in the history
  • Loading branch information
rockeet committed Apr 23, 2023
1 parent fb63d9b commit 2040348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/memtable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ Status MemTable::Add(SequenceNumber s, ValueType type,
earliest_seqno_.load(std::memory_order_relaxed);
while (
(cur_earliest_seqno == kMaxSequenceNumber || s < cur_earliest_seqno) &&
!first_seqno_.compare_exchange_weak(cur_earliest_seqno, s)) {
!earliest_seqno_.compare_exchange_weak(cur_earliest_seqno, s)) {
}
}
if (type == kTypeRangeDeletion) {
Expand Down

0 comments on commit 2040348

Please sign in to comment.