Skip to content

Commit e19de86

Browse files
authored
fix(ctl): object store migration tool (#21085)
1 parent 904c606 commit e19de86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ctl/src/cmd_impl/hummock/migrate_legacy_object.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ pub async fn migrate_legacy_object(
6767
source_dir,
6868
"{legacy_path} versus {source_dir}"
6969
);
70+
if legacy_path.ends_with('/') {
71+
tracing::warn!(legacy_path, "skip directory");
72+
continue;
73+
}
7074
let new_path = format!("{}{}", target_dir, &legacy_path[source_dir.len()..]);
7175
from_to.push((legacy_path, new_path));
7276
} else {

0 commit comments

Comments
 (0)