diff --git a/utilities/ttl/db_ttl.h b/utilities/ttl/db_ttl.h index 79f75bb6c..dae0ba849 100644 --- a/utilities/ttl/db_ttl.h +++ b/utilities/ttl/db_ttl.h @@ -277,7 +277,7 @@ class TtlMergeOperator : public MergeOperator { const Slice& right_operand, std::string* new_value, Logger* logger) const override { - const uint32_t& ts_len = DBWithTTL::kTSLength; + const uint32_t ts_len = DBWithTTL::kTSLength; if (left_operand.size() < ts_len || right_operand.size() < ts_len) { Log(logger, "Error: Could not remove timestamp from value.");