raiseLastCommittedSequenceNumber method

  1. @override
Future<void> raiseLastCommittedSequenceNumber(
  1. int commitId
)
override

Raise lastCommittedSequenceNumber to at least commitId, so commit never issues commitId or any id below it. Migration uses it to carry the source's last commit id across: the source's newest entries may have been purged, so the entries it replays do not show it.

Implementation

@override
Future<void> raiseLastCommittedSequenceNumber(int commitId) async {
  try {
    await _commitLogKeyStore.raiseHighWaterMark(commitId);
  } on HiveError catch (e) {
    throw DataStoreException(
        'Hive error raising the last commit id: ${e.toString()}');
  }
}