@@ -19,15 +19,15 @@ namespace rocksdb {
19
19
// Expects no merging attempts.
20
20
class NoMergingMergeOp : public MergeOperator {
21
21
public:
22
- bool FullMergeV2 (const MergeOperationInput& merge_in,
23
- MergeOperationOutput* merge_out) const override {
22
+ bool FullMergeV2 (const MergeOperationInput& /* merge_in*/ ,
23
+ MergeOperationOutput* /* merge_out*/ ) const override {
24
24
ADD_FAILURE ();
25
25
return false ;
26
26
}
27
- bool PartialMergeMulti (const Slice& key,
28
- const std::deque<Slice>& operand_list,
29
- std::string* new_value,
30
- Logger* logger) const override {
27
+ bool PartialMergeMulti (const Slice& /* key*/ ,
28
+ const std::deque<Slice>& /* operand_list*/ ,
29
+ std::string* /* new_value*/ ,
30
+ Logger* /* logger*/ ) const override {
31
31
ADD_FAILURE ();
32
32
return false ;
33
33
}
@@ -126,7 +126,7 @@ class LoggingForwardVectorIterator : public InternalIterator {
126
126
keys_.begin ();
127
127
}
128
128
129
- virtual void SeekForPrev (const Slice& target) override { assert (false ); }
129
+ virtual void SeekForPrev (const Slice& /* target*/ ) override { assert (false ); }
130
130
131
131
virtual void Next () override {
132
132
assert (Valid ());
@@ -158,9 +158,12 @@ class FakeCompaction : public CompactionIterator::CompactionProxy {
158
158
public:
159
159
FakeCompaction () = default ;
160
160
161
- virtual int level (size_t compaction_input_level) const override { return 0 ; }
161
+ virtual int level (size_t /* compaction_input_level*/ ) const override {
162
+ return 0 ;
163
+ }
162
164
virtual bool KeyNotExistsBeyondOutputLevel (
163
- const Slice& user_key, std::vector<size_t >* level_ptrs) const override {
165
+ const Slice& /* user_key*/ ,
166
+ std::vector<size_t >* /* level_ptrs*/ ) const override {
164
167
return is_bottommost_level || key_not_exists_beyond_output_level;
165
168
}
166
169
virtual bool bottommost_level () const override { return is_bottommost_level; }
@@ -365,9 +368,9 @@ TEST_P(CompactionIteratorTest, RangeDeletionWithSnapshots) {
365
368
366
369
TEST_P (CompactionIteratorTest, CompactionFilterSkipUntil) {
367
370
class Filter : public CompactionFilter {
368
- virtual Decision FilterV2 (int level, const Slice& key, ValueType t,
371
+ virtual Decision FilterV2 (int /* level*/ , const Slice& key, ValueType t,
369
372
const Slice& existing_value,
370
- std::string* new_value,
373
+ std::string* /* new_value*/ ,
371
374
std::string* skip_until) const override {
372
375
std::string k = key.ToString ();
373
376
std::string v = existing_value.ToString ();
@@ -548,10 +551,10 @@ TEST_P(CompactionIteratorTest, ShuttingDownInMerge) {
548
551
549
552
TEST_P (CompactionIteratorTest, SingleMergeOperand) {
550
553
class Filter : public CompactionFilter {
551
- virtual Decision FilterV2 (int level, const Slice& key, ValueType t,
554
+ virtual Decision FilterV2 (int /* level*/ , const Slice& key, ValueType t,
552
555
const Slice& existing_value,
553
- std::string* new_value,
554
- std::string* skip_until) const override {
556
+ std::string* /* new_value*/ ,
557
+ std::string* /* skip_until*/ ) const override {
555
558
std::string k = key.ToString ();
556
559
std::string v = existing_value.ToString ();
557
560
@@ -602,7 +605,7 @@ TEST_P(CompactionIteratorTest, SingleMergeOperand) {
602
605
bool PartialMergeMulti (const Slice& key,
603
606
const std::deque<Slice>& operand_list,
604
607
std::string* new_value,
605
- Logger* logger) const override {
608
+ Logger* /* logger*/ ) const override {
606
609
std::string string_key = key.ToString ();
607
610
EXPECT_TRUE (string_key == " a" || string_key == " b" );
608
611
0 commit comments