Skip to content

Commit

Permalink
InternalKey::Set: remove redundant assign (facebook#12194)
Browse files Browse the repository at this point in the history
Summary:
InternalKey::Set: remove redundant assign

Pull Request resolved: facebook#12194

Reviewed By: cbi42

Differential Revision: D52457542

Pulled By: ajkr

fbshipit-source-id: 329983a8734ff38ffd93018bbbe112b4a23b5c11
  • Loading branch information
rockeet authored and facebook-github-bot committed Jan 2, 2024
1 parent 06e5933 commit 906c668
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 906c668

Please sign in to comment.