diff --git a/server/filestore.go b/server/filestore.go index 782268c6..dce0414b 100644 --- a/server/filestore.go +++ b/server/filestore.go @@ -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)