Closed MauriceVanVeen closed 4 weeks ago
Reverts the changes made in https://github.com/nats-io/nats-server/pull/5987, but the tests are kept.
Instead opting for a simpler approach:
isNew
pterm
pindex
ae.pindex == n.pindex
Signed-off-by: Maurice van Veen github@mauricevanveen.com
@mprimi you good with this PR?
@derekcollison yes, we reviewed this morning and i am onboard.
Reverts the changes made in https://github.com/nats-io/nats-server/pull/5987, but the tests are kept.
Instead opting for a simpler approach:
isNew
condition whenpterm
orpindex
don't match, to ensure consistency even during catchupae.pindex == n.pindex
condition up sopterm
can be corrected (otherwise it would not be executed)Signed-off-by: Maurice van Veen github@mauricevanveen.com