table/cuckoo_table_reader.cc: pass func parameter by reference

Fix for:

[table/cuckoo_table_reader.cc:196]: (performance) Function
 parameter 'target' should be passed by reference.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2014-10-01 07:24:20 +02:00
parent 5abd8add7d
commit 55652043c8

View File

@ -193,7 +193,7 @@ class CuckooTableIterator : public Iterator {
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),
ucomp_(ucomp), ucomp_(ucomp),
bucket_len_(bucket_len), bucket_len_(bucket_len),