Function mz_persist_txn::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,
D: Semigroup + 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.