WaitForSequenceNotSkipped blocks until the given sequence has been received by the change cache without being skipped.
(ctx context.Context, sequence uint64)
| 1234 | |
| 1235 | // WaitForSequenceNotSkipped blocks until the given sequence has been received by the change cache without being skipped. |
| 1236 | func (c *DatabaseCollection) WaitForSequenceNotSkipped(ctx context.Context, sequence uint64) (err error) { |
| 1237 | base.DebugfCtx(ctx, base.KeyChanges, "Waiting for sequence: %d", sequence) |
| 1238 | return c.changeCache().waitForSequenceNotSkipped(ctx, sequence, base.DefaultWaitForSequence) |
| 1239 | } |
| 1240 | |
| 1241 | // WaitForPendingChanges blocks until the change-cache has caught up with the latest writes to the database. |
| 1242 | func (c *DatabaseCollection) WaitForPendingChanges(ctx context.Context) error { |