markBackfilled

open suspend fun markBackfilled(type: AggregateType, revision: Int, generation: Int): SnapshotTable?

Marks type's table SnapshotTable.backfilled while it is claimed at revision and at generation, the one whose backfill the caller checked; returns the record after, or null when it is claimed at another revision or generation, or not at all. A renewal between the check and the mark so leaves the renewed table unmarked.

The default marks at revision alone (mark) for generation 1, which holds for a store that does not renew: its tables stay at generation 1. Above it the default marks nothing and answers null, so a store that renews and does not override this leaves a renewed table visibly not caught up, never marked at a generation nobody checked. A store that renews overrides it, with generation in its write's condition.