Function mz_txn_wal::empty_caa

source ยท
pub(crate) async fn empty_caa<S, F, K, V, T, D>(
    name: F,
    txns_or_data_write: &mut WriteHandle<K, V, T, D>,
    init_ts: T,
)
where S: AsRef<str>, F: Fn() -> S, K: Debug + Codec, V: Debug + Codec, T: Timestamp + Lattice + TotalOrder + StepForward + Codec64 + Sync, D: Debug + Semigroup + Ord + Codec64 + Send + Sync,
Expand description

Ensures that the upper of the shard is past init_ts by writing an empty batch, retrying as necessary.

This method is idempotent.