InternalKey::Set: remove redundant assign (#12194)

Summary:
InternalKey::Set: remove redundant assign

Pull Request resolved: https://github.com/facebook/rocksdb/pull/12194

Reviewed By: cbi42

Differential Revision: D52457542

Pulled By: ajkr

fbshipit-source-id: 329983a8734ff38ffd93018bbbe112b4a23b5c11
This commit is contained in:
leipeng 2024-01-02 11:17:39 -08:00 committed by Facebook GitHub Bot
parent 06e593376c
commit 906c6683ed
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ class InternalKey {
void Set(const Slice& _user_key_with_ts, SequenceNumber s, ValueType t,
const Slice& ts) {
ParsedInternalKey pik = ParsedInternalKey(_user_key_with_ts, s, t);
ParsedInternalKey pik(_user_key_with_ts, s, t);
// Should not call pik.SetTimestamp() directly as it overwrites the buffer
// containing _user_key.
SetFrom(pik, ts);