leveldb icon indicating copy to clipboard operation
leveldb copied to clipboard

In the member function ParseNextKey() of the Block::Ite class in the leveldb/table/block.cc file, the last member variable restart_index_ updated.

Open LunarStore opened this issue 1 year ago • 1 comments

In the leveldb/table/block.cc file, the member function ParseNextKey() of the Block::Ite class, when updating the member variable restart_index_, the last judgment condition of the while loop (GetRestartPoint(restart_index_ + 1) < current_) should be added with an equal sign, right? If the first KV of the restart point is read without the equal sign, the restart_index will not be updated in time, and the second KV must be read to update.

LunarStore avatar Aug 04 '23 02:08 LunarStore