Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not link in pagination direction for events at start of chunk
If we link chunks in pagination direction, and discard all events after that, we assume that we reached a point in the chunk that is already covered by a different chunk. If we however haven't seen any new events in that chunk yet, chances are this is the wrong direction we are linking. So in this case, better just skip related events and continue processing later events - making sure we don't lose new events and don't link in the wrong direction. Note we could also enforce links into the opposite direction in this case. Since in the cases I observed so far, such link already existed, so I think this is probably not necessary. Change-Id: Ia4d2fd87188b9757ed68416e883c3fb489cdfa6e
- Loading branch information