Don't forget last message

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2021-03-01 12:52:54 -08:00
parent c0729a1309
commit f16d9c6ea8

View File

@@ -4274,7 +4274,7 @@ func (mset *stream) runCatchup(sendSubject string, sreq *streamSyncRequest) {
notActive.Reset(activityInterval)
sendNextBatch()
// Check if we are finished.
if seq >= last {
if seq > last {
s.Debugf("Done resync for stream '%s > %s'", mset.account(), mset.name())
return
}