MemTable::Add: first_seqno_.compare_exchange_weak to earliest_seqno_ (#11398)

Summary:
This should be a benign bug caused by a long lived typo, this PR fix this issue.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/11398

Reviewed By: ajkr

Differential Revision: D47163379

Pulled By: cbi42

fbshipit-source-id: 531728cae496fd7ac1371bbbd64fc103c3a90dcf
This commit is contained in:
leipeng 2023-07-03 15:05:38 -07:00 committed by Facebook GitHub Bot
parent f4e304f987
commit 25b08eb438
1 changed files with 1 additions and 1 deletions

View File

@ -810,7 +810,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) {