mirror of https://github.com/facebook/rocksdb.git
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:
parent
06e593376c
commit
906c6683ed
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue