block.cc's fix

This commit is contained in:
LunarStore 2023-09-02 12:19:14 +08:00
parent 068d5ee1a3
commit 088de58006

View File

@ -269,7 +269,7 @@ class Block::Iter : public Iterator {
key_.append(p, non_shared);
value_ = Slice(p + non_shared, value_length);
while (restart_index_ + 1 < num_restarts_ &&
GetRestartPoint(restart_index_ + 1) < current_) {
GetRestartPoint(restart_index_ + 1) <= current_) {
++restart_index_;
}
return true;