Skip to content

Commit 93548ce

Browse files
committed
table/cuckoo_table_reader.cc: pass func parameter by ref
Fix for: [table/cuckoo_table_reader.cc:198]: (performance) Function parameter 'file_data' should be passed by reference. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
1 parent b8b7117 commit 93548ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

table/cuckoo_table_reader.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class CuckooTableIterator : public Iterator {
191191

192192
private:
193193
struct BucketComparator {
194-
BucketComparator(const Slice file_data, const Comparator* ucomp,
194+
BucketComparator(const Slice& file_data, const Comparator* ucomp,
195195
uint32_t bucket_len, uint32_t user_key_len,
196196
const Slice target = Slice())
197197
: file_data_(file_data),

0 commit comments

Comments
 (0)