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.65k stars 1.39k forks source link

When installing a new snapshot remove last inline if present. #5558

Closed derekcollison closed 3 months ago

derekcollison commented 3 months ago

Previously (but not in released code) we were cleaning up all old ones in a go routine. However this could cause multiple go routines to race and delete the wrong snapshot leaving none available.

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

derekcollison commented 3 months ago

Had a small bug, but tracked it down. If green will merge after this run.