From 1a76289be40ce158a3d34c745ce4d71cee50a4ff Mon Sep 17 00:00:00 2001 From: Changyu Bi Date: Mon, 2 Dec 2024 10:19:35 -0800 Subject: [PATCH] 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 --- memtable/wbwi_memtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memtable/wbwi_memtable.h b/memtable/wbwi_memtable.h index 1daf5d7797..088f4931ba 100644 --- a/memtable/wbwi_memtable.h +++ b/memtable/wbwi_memtable.h @@ -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);