Reset later item flag after defrag later is done (#12694)

Fixing issues described in #12672, started after #11695
Related to #12674

Fixes the `defrag didn't stop' issue.

In some cases of how the keys were stored in memory
defrag_later_item_in_progress was not getting reset once we finish
defragging the later items and we move to the next slot. This stopped
the scan to happen in the later slots and did not get
This commit is contained in:
Roshan Khatri 2023-10-27 03:56:15 -07:00 committed by GitHub
parent ba900f6cb8
commit 7d68208a6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1053,6 +1053,7 @@ void activeDefragCycle(void) {
continue;
}
slot = dbGetNextNonEmptySlot(db, slot, DB_MAIN);
defrag_later_item_in_progress = 0;
ctx.slot = slot;
}