Unverified Commit 7d68208a authored by Roshan Khatri's avatar Roshan Khatri Committed by GitHub
Browse files

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 
parent ba900f6c
...@@ -1053,6 +1053,7 @@ void activeDefragCycle(void) { ...@@ -1053,6 +1053,7 @@ void activeDefragCycle(void) {
continue; continue;
} }
slot = dbGetNextNonEmptySlot(db, slot, DB_MAIN); slot = dbGetNextNonEmptySlot(db, slot, DB_MAIN);
defrag_later_item_in_progress = 0;
ctx.slot = slot; ctx.slot = slot;
} }
......
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