1
0
mirror of https://github.com/facebook/rocksdb.git synced 2026-10-23 08:09:02 +03:00

Small fix in WBWIMemtable::UpdateKey() (#13171)

Summary:
fixes issue https://github.com/facebook/rocksdb/issues/13166.

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

Test Plan: the same command in https://github.com/facebook/rocksdb/issues/13166 doesn't reproduce for me.

Reviewed By: ltamasi

Differential Revision: D66621871

Pulled By: cbi42

fbshipit-source-id: 08820a22071091606b437181e2b5e9343202d637
This commit is contained in:
Changyu Bi
2024-12-02 10:19:35 -08:00
committed by Facebook GitHub Bot
parent 6f9d8260f0
commit 1a76289be4

View File

@@ -123,7 +123,7 @@ class WBWIMemTableIterator final : public InternalIterator {
key_.clear();
valid_ = false;
s_ = Status::Corruption("Unexpected write_batch_with_index entry type " +
std::to_string(t->second));
std::to_string(it_->Entry().type));
return;
}
key_buf_.SetInternalKey(it_->Entry().key, global_seqno_, t->second);