Skip to content

Commit 53910dd

Browse files
committed
db_test.cc: pass parameter by reference
Fix for: [db/db_test.cc:6141]: (performance) Function parameter 'key' should be passed by reference. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
1 parent 68ca534 commit 53910dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/db_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -6138,7 +6138,7 @@ class WrappedBloom : public FilterPolicy {
61386138
const FilterPolicy* filter_;
61396139
mutable uint32_t counter_;
61406140

6141-
rocksdb::Slice convertKey(const rocksdb::Slice key) const {
6141+
rocksdb::Slice convertKey(const rocksdb::Slice& key) const {
61426142
return key;
61436143
}
61446144
};

0 commit comments

Comments
 (0)