Commit b2910dcc authored by Georgios Bitzes's avatar Georgios Bitzes
Browse files

Fix off-by-one in raw-scan-tombstones COUNT option

parent 80f31ff9
Pipeline #822940 failed with stages
in 32 minutes and 39 seconds
......@@ -619,7 +619,7 @@ rocksdb::Status StateMachine::rawScanTombstones(StagingArea &stagingArea, std::s
IteratorPtr iter(stagingArea.getIterator(true));
iter->Seek(key);
while(iter->Valid() && elements.size() <= count) {
while(iter->Valid() && elements.size() < count) {
std::string_view currentKey = iter->key().ToStringView();
if(isTombstone(currentKey)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment