Skip to main content

recheck

Function recheck 

Source
pub fn recheck(
    conn: &Connection,
    collection: &str,
    me: &str,
    adapter: &dyn Adapter,
) -> Result<usize>
Expand description

Settles the records that a change of the epoch ends moved rows in or out of (reset_epochs notes them): a write stored as void under a removal that then lost a fork counts now and is merged as it would have been, and one that no longer counts stops being its record’s state. What counts is merged oldest version first, as the adapter would have taken the records in; what me wrote is kept whether or not it counts (it is written again at the current epoch, which supersedes it). Answers how many records’ state moved.