Skip to content

Commit

Permalink
table/cuckoo_table_reader.cc: pass func parameter by ref
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dalgaaf committed Sep 30, 2014
1 parent b8b7117 commit 93548ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion table/cuckoo_table_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class CuckooTableIterator : public Iterator {

private:
struct BucketComparator {
BucketComparator(const Slice file_data, const Comparator* ucomp,
BucketComparator(const Slice& file_data, const Comparator* ucomp,
uint32_t bucket_len, uint32_t user_key_len,
const Slice target = Slice())
: file_data_(file_data),
Expand Down

0 comments on commit 93548ce

Please sign in to comment.