Skip to content

Commit

Permalink
fix: add slash after generated region_dir (#2463)
Browse files Browse the repository at this point in the history
* fix: add slash after generated region_dir

Signed-off-by: Ruihang Xia <[email protected]>

* update ut

Signed-off-by: Ruihang Xia <[email protected]>

---------

Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia authored Sep 21, 2023
1 parent 580d11b commit e3f53a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store-api/src/path_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
)
Expand All @@ -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/"
);
}
}

0 comments on commit e3f53a8

Please sign in to comment.