mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Full stream state with interior delete details not needed by recipient of snapshot
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -4868,8 +4868,9 @@ func (mset *stream) processSnapshot(snap *streamSnapshot) error {
|
||||
mset.processSnapshotDeletes(snap)
|
||||
|
||||
mset.mu.Lock()
|
||||
var state StreamState
|
||||
mset.clfs = snap.Failed
|
||||
state := mset.store.State()
|
||||
mset.store.FastState(&state)
|
||||
sreq := mset.calculateSyncRequest(&state, snap)
|
||||
s, js, subject, n := mset.srv, mset.js, mset.sa.Sync, mset.node
|
||||
mset.mu.Unlock()
|
||||
@@ -4931,7 +4932,8 @@ RETRY:
|
||||
// Grab sync request again on failures.
|
||||
if sreq == nil {
|
||||
mset.mu.Lock()
|
||||
state := mset.store.State()
|
||||
var state StreamState
|
||||
mset.store.FastState(&state)
|
||||
sreq = mset.calculateSyncRequest(&state, snap)
|
||||
mset.mu.Unlock()
|
||||
if sreq == nil {
|
||||
|
||||
Reference in New Issue
Block a user