nats-io / nats-server

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

[IMPROVED] Avoid loading last blks on LoadNextMsg() miss. #5584

Closed derekcollison closed 1 week ago

derekcollison commented 1 week ago

Make sure on a miss from a starting sequence that if no other msgs exists we avoid loading and blocks. Match logic for interior skips.

Signed-off-by: Derek Collison derek@nats.io