Skip to content

v2.0.2 — Clean up empty Redis depth levels

Choose a tag to compare

@stingbo stingbo released this 05 Nov 13:41
· 1 commit to master since this release

When a fill or cancellation empties a price level, Mengine removes the Redis depth hash field and sorted-set member atomically.

Regression coverage verifies cleanup after fills, full cancellations, and partial cancellations that remove the entire remainder. It also verifies that placing a new order at the same price restores the correct depth.

Existing zero-volume fields are cleaned up when their price level goes through this path.