mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-04 12:22:55 +00:00
fix: add slash after generated region_dir (#2463)
* fix: add slash after generated region_dir Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update ut Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -45,7 +45,7 @@ pub fn table_dir(path: &str, table_id: TableId) -> String {
|
||||
|
||||
pub fn region_dir(path: &str, region_id: RegionId) -> String {
|
||||
format!(
|
||||
"{}{}",
|
||||
"{}{}/",
|
||||
table_dir(path, region_id.table_id()),
|
||||
region_name(region_id.table_id(), region_id.region_number())
|
||||
)
|
||||
@@ -60,7 +60,7 @@ mod tests {
|
||||
let region_id = RegionId::new(42, 1);
|
||||
assert_eq!(
|
||||
region_dir("my_catalog/my_schema", region_id),
|
||||
"data/my_catalog/my_schema/42/42_0000000001"
|
||||
"data/my_catalog/my_schema/42/42_0000000001/"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user