mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Fix bug that would race around check for last sequence per subject
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -3861,7 +3861,7 @@ func (mset *stream) processJetStreamMsg(subject, reply string, hdr, msg []byte,
|
||||
}
|
||||
// Expected last sequence per subject.
|
||||
// If we are clustered we have prechecked seq > 0.
|
||||
if seq, exists := getExpectedLastSeqPerSubject(hdr); exists && (!isClustered || seq == 0) {
|
||||
if seq, exists := getExpectedLastSeqPerSubject(hdr); exists {
|
||||
// TODO(dlc) - We could make a new store func that does this all in one.
|
||||
var smv StoreMsg
|
||||
var fseq uint64
|
||||
|
||||
Reference in New Issue
Block a user