dropEventsUpTo method

void dropEventsUpTo(
  1. int seq
)

Removes the events up to seq from the log, as sync.event_retention does, so a cursor below them gets resync_required with retention (04 7.3).

Implementation

void dropEventsUpTo(int seq) {
  log.removeWhere((e) => e.seq! <= seq);
  minRetainedSeq = seq + 1;
}