Skip to content

Commit 9454c3c

Browse files
committed
Make Checkpoint::checkpointId immutable
Change-Id: Idd56913f62979960bf01e955d2ac0770edc1bd29 Reviewed-on: https://review.couchbase.org/c/kv_engine/+/172724 Reviewed-by: Paolo Cocchi <[email protected]> Tested-by: Richard de Mellow <[email protected]>
1 parent f8a3345 commit 9454c3c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

engines/ep/src/checkpoint.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -294,14 +294,6 @@ class Checkpoint {
294294
return checkpointId;
295295
}
296296

297-
/**
298-
* Set the checkpoint Id
299-
* @param id the checkpoint Id to be set.
300-
*/
301-
void setId(uint64_t id) {
302-
checkpointId = id;
303-
}
304-
305297
/**
306298
* Return the creation timestamp of this checkpoint in sec.
307299
*/
@@ -643,7 +635,7 @@ class Checkpoint {
643635
CheckpointManager* manager = nullptr;
644636

645637
EPStats& stats;
646-
uint64_t checkpointId;
638+
const uint64_t checkpointId;
647639
uint64_t snapStartSeqno;
648640
uint64_t snapEndSeqno;
649641

0 commit comments

Comments
 (0)