dice
dice copied to clipboard
Ensure correct segment order when returning segment files
Related to https://github.com/DiceDB/dice/issues/1762. In the segments method of the WAL forge, we grab all segment file paths in the WAL dir, extract their IDs by stripping the path to the segment file and the segment prefix, and order the segments paths by IDs in ascending order.