Skip to content

Commit c7ca055

Browse files
committed
MB-47604: Pass CompactionConfig by value and use std::move
So that in a future patch which tweaks other parts of this ctor clang-tidy doesn't complain about this. Change-Id: Ide518acfe577ebe0ad4e3bf05b87a9d332f17bd7 Reviewed-on: http://review.couchbase.org/c/kv_engine/+/163193 Tested-by: Build Bot <[email protected]> Reviewed-by: Richard de Mellow <[email protected]>
1 parent 1fbba81 commit c7ca055

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engines/ep/src/kvstore/kvstore.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ enum class PurgedItemType {
143143

144144
struct CompactionContext {
145145
CompactionContext(Vbid vbid,
146-
const CompactionConfig& config,
146+
CompactionConfig config,
147147
uint64_t purgeSeq,
148148
std::optional<time_t> timeToExpireFrom = {})
149149
: vbid(vbid),
150-
compactConfig(config),
150+
compactConfig(std::move(config)),
151151
rollbackPurgeSeqno(purgeSeq),
152152
timeToExpireFrom(timeToExpireFrom) {
153153
}

0 commit comments

Comments
 (0)