mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-14 10:10:42 -07:00
Merge branch 'main' into dev
This commit is contained in:
@@ -5748,7 +5748,8 @@ func (fs *fileStore) Snapshot(deadline time.Duration, checkMsgs, includeConsumer
|
||||
}
|
||||
|
||||
// We can add to our stream while snapshotting but not delete anything.
|
||||
state := fs.State()
|
||||
var state StreamState
|
||||
fs.FastState(&state)
|
||||
|
||||
// Stream in separate Go routine.
|
||||
go fs.streamSnapshot(pw, &state, includeConsumers)
|
||||
|
||||
Reference in New Issue
Block a user