Skip to content

Commit

Permalink
InternalKey::Set: remove redundant assign
Browse files Browse the repository at this point in the history
  • Loading branch information
rockeet committed Dec 29, 2023
1 parent a036525 commit 112161f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/dbformat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 112161f

Please sign in to comment.