Skip to main content

reset_counters

Function reset_counters 

Source
pub fn reset_counters() -> Result<(), CounterError>
Expand description

Resets all counters to 0. Expected to be used after a fork, to reset the counters on the child ATOMICITY: The reset of each individual counter is atomic, but the entire reset is NOT. Should only be used when no conflicting updates can occur, e.g. after a fork but before ops start on the child.