Skip to content

Commit 0b48f5e

Browse files
paolococchidaverigby
authored andcommitted
MB-48529: Remove CheckpointConfig members default value
Legacy from hardcoded test values, now meaningless. In the new code they're all forced to be initialized by EPConfig values. Change-Id: I7e015d82896afde7abf5b1b71876e72bc0cb521a Reviewed-on: http://review.couchbase.org/c/kv_engine/+/164333 Tested-by: Build Bot <[email protected]> Reviewed-by: Dave Rigby <[email protected]>
1 parent 78e3514 commit 0b48f5e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

engines/ep/src/checkpoint_config.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,23 @@ class CheckpointConfig {
7474

7575
// Period of a checkpoint in terms of time in seconds.
7676
// Dynamic in EPConfig
77-
std::atomic<rel_time_t> checkpointPeriod{5};
77+
std::atomic<rel_time_t> checkpointPeriod;
7878

7979
// Number of max items allowed in each checkpoint.
8080
// Dynamic in EPConfig
81-
std::atomic<size_t> checkpointMaxItems{1000};
81+
std::atomic<size_t> checkpointMaxItems;
8282

8383
// Number of max checkpoints allowed.
8484
// Dynamic in EPConfig
85-
std::atomic<size_t> maxCheckpoints{2};
85+
std::atomic<size_t> maxCheckpoints;
8686

8787
// Flag indicating if a new checkpoint is created once the number of items
8888
// in the current checkpoint is greater than the max number allowed.
8989
// Dynamic in EPConfig
90-
std::atomic<bool> itemNumBasedNewCheckpoint{true};
90+
std::atomic<bool> itemNumBasedNewCheckpoint;
9191

9292
// Flag indicating if persistence is enabled.
93-
bool persistenceEnabled{true};
93+
bool persistenceEnabled;
9494

95-
CheckpointRemoval checkpointRemovalMode = CheckpointRemoval::Eager;
95+
CheckpointRemoval checkpointRemovalMode;
9696
};

0 commit comments

Comments
 (0)