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>
main
Danny Al-Gaaf 10 years ago
parent b8b7117e97
commit 93548ce8f4
  1. 2
      table/cuckoo_table_reader.cc

@ -191,7 +191,7 @@ class CuckooTableIterator : public Iterator {
private: private:
struct BucketComparator { 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, uint32_t bucket_len, uint32_t user_key_len,
const Slice target = Slice()) const Slice target = Slice())
: file_data_(file_data), : file_data_(file_data),

Loading…
Cancel
Save