Skip to main content

plan

pub(super) async fn plan<I>(
    services: &Services,
    rows: I,
    from: u64,
    action: Action,
) -> Result<Option<Vec<Write>>>
where I: IntoIterator<Item = Row> + Send, I::IntoIter: Send,
Expand description

The writes one candidate’s action needs, decided before any of them.

A purge removes every owned row. A move rewrites each row for the winner, and is refused, as None, when a row will not rewrite or a source or destination no longer holds what the move expects.