Skip to main content

leads_region

Function leads_region 

Source
pub(crate) async fn leads_region(
    table_metadata_manager: &TableMetadataManagerRef,
    node_id: DatanodeId,
    region_id: RegionId,
) -> Result<bool>
Expand description

Returns true if node_id still leads region_id.

The table route is authoritative, so a region that is not listed anymore is reported as not led by the datanode.