Skip to content

Commit 8a4014c

Browse files
committed
MB-58961: Make ActiveStream::curChkSeqno weakly-monotonic type
In follow-up patches we are fixing a bug where the monotonicity is violated. Change-Id: I8325f8822a0f616519e0630762b570b4dfa02e76 Reviewed-on: https://review.couchbase.org/c/kv_engine/+/198890 Well-Formed: Restriction Checker Tested-by: Build Bot <[email protected]> Reviewed-by: Dave Rigby <[email protected]>
1 parent ab51b91 commit 8a4014c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engines/ep/src/dcp/active_stream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ class ActiveStream : public Stream,
847847
std::atomic<uint64_t> lastSentSeqnoAdvance;
848848

849849
//! The last known seqno pointed to by the checkpoint cursor
850-
std::atomic<uint64_t> curChkSeqno;
850+
AtomicWeaklyMonotonic<uint64_t, ThrowExceptionPolicy> curChkSeqno;
851851

852852
/*
853853
* The next snapshot start that we will send (set when we set

0 commit comments

Comments
 (0)