nats-io / nats-server

High-Performance server for NATS.io, the cloud and edge native messaging system.
https://nats.io
Apache License 2.0
16k stars 1.41k forks source link

[FIXED] Make `o.Update(state)` consistent for file and mem & fixed int underflow #6147

Closed MauriceVanVeen closed 1 day ago

MauriceVanVeen commented 2 days ago

Made o.Update(state) consistent for file and mem stores. For example: mem would not report for certain error conditions and file would not report an error for an error condition.

Also fixed integer underflow in o.checkAckFloor.

Signed-off-by: Maurice van Veen github@mauricevanveen.com