Skip to main content

bump_epoch

Function bump_epoch 

Source
pub async fn bump_epoch<'a>(
    executor: impl PgExecutor<'a>,
) -> Result<i64, DatabaseError>
Expand description

Every write that changes what snapshot would return has to bump the epoch, or the nodes keep serving the state they already hold. Models bump; the route that owns the commit then calls poke_nodes.