mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-26 01:40:36 +00:00
test: add tests for lease keeper with logical table (#3096)
This commit is contained in:
@@ -91,7 +91,9 @@ impl TableRouteValue {
|
||||
Ok(self.physical_table_route().version)
|
||||
}
|
||||
|
||||
/// Returns the corresponding [RegionRoute].
|
||||
/// Returns the corresponding [RegionRoute], returns `None` if it's the specific region is not found.
|
||||
///
|
||||
/// Note: It throws an error if it's a logical table
|
||||
pub fn region_route(&self, region_id: RegionId) -> Result<Option<RegionRoute>> {
|
||||
ensure!(
|
||||
self.is_physical(),
|
||||
|
||||
Reference in New Issue
Block a user