db_ttl_impl.h: pass func parameter by reference

Fix for:

[utilities/ttl/db_ttl_impl.h:209]: (performance) Function parameter
 'merge_op' should be passed by reference.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
main
Danny Al-Gaaf 10 years ago
parent 8558457143
commit 873f1356a1
  1. 2
      utilities/ttl/db_ttl_impl.h

@ -206,7 +206,7 @@ class TtlCompactionFilterFactory : public CompactionFilterFactory {
class TtlMergeOperator : public MergeOperator { class TtlMergeOperator : public MergeOperator {
public: public:
explicit TtlMergeOperator(const std::shared_ptr<MergeOperator> merge_op, explicit TtlMergeOperator(const std::shared_ptr<MergeOperator>& merge_op,
Env* env) Env* env)
: user_merge_op_(merge_op), env_(env) { : user_merge_op_(merge_op), env_(env) {
assert(merge_op); assert(merge_op);

Loading…
Cancel
Save