Skip to content

Commit

Permalink
MB-51298: Make checkpoint snapStartSeqno const
Browse files Browse the repository at this point in the history
Make the checkpoint snapStartSeqno const as it should be immutable.

Change-Id: I75f37146e4a855f392bf73eb915c522727fd1715
Reviewed-on: https://review.couchbase.org/c/kv_engine/+/173213
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
  • Loading branch information
rdemellow committed Apr 5, 2022
1 parent 45bc9fe commit 90fee1a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions engines/ep/src/checkpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,6 @@ class Checkpoint {
return snapStartSeqno;
}

void setSnapshotStartSeqno(uint64_t seqno) {
snapStartSeqno = seqno;
}

uint64_t getSnapshotEndSeqno() const {
return snapEndSeqno;
}
Expand Down Expand Up @@ -641,7 +637,7 @@ class Checkpoint {

EPStats& stats;
const uint64_t checkpointId;
uint64_t snapStartSeqno;
const uint64_t snapStartSeqno;
uint64_t snapEndSeqno;

/// The maximum visible snapshot end (hides prepare/abort), this could be
Expand Down

0 comments on commit 90fee1a

Please sign in to comment.