Skip to main content

reserve_mirror_pending_rows

Function reserve_mirror_pending_rows 

Source
fn reserve_mirror_pending_rows(
    mirror_pending_rows: &AtomicU64,
    rows: u64,
) -> u64
Expand description

Reserves rows of the pending mirror budget and returns the resulting pending row count. The caller must release_mirror_pending_rows exactly these rows once they are no longer buffered, whether it spawns the batch or drops it.