fn check_takeover(
region_id: RegionId,
takeover: Option<Result<TakeoverPrepared>>,
) -> Result<TakeoverPrepared>Expand description
Returns what the engine prepared for the takeover of region_id. None means the engine prepared
nothing, as for a catchup sent to the worker directly, and fails with InvalidRequest;
Some(Err(e)) fails with the error of the preparation.