Open erikjohnston opened 1 year ago
Examples are the key here, I think.
An incoming POSITION sends two numbers prev < next. (I assume that prev = next or next < prev are invalid?) The worker processing the POSITION has its own position "current". There are then five cases to illustrate:
(The invariant we apparently want is prev <= current <= next, i.e. the middle three bullets.)
c.f. https://github.com/matrix-org/synapse/pull/16555#discussion_r1374439569