Skip to main content

node_epoch_above_record

Function node_epoch_above_record 

Source
async fn node_epoch_above_record(
    kv_backend: &KvBackendRef,
    node_id: u64,
    start_time_ms: u64,
) -> Result<u64>
Expand description

Returns the epoch of this process: its start time, or one more than the epoch the metasrv has recorded for the node when the record is not lower than the start time, as after a restart on a slower clock or after the clock stepped back. The metasrv fences an epoch lower than the recorded one.