diff --git a/memtable/wbwi_memtable.h b/memtable/wbwi_memtable.h index 1daf5d77974..088f4931ba5 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);