diff --git a/ydb/core/tx/schemeshard/schemeshard_import_getters.cpp b/ydb/core/tx/schemeshard/schemeshard_import_getters.cpp index a96f863786f7..ae8362e0aacd 100644 --- a/ydb/core/tx/schemeshard/schemeshard_import_getters.cpp +++ b/ydb/core/tx/schemeshard/schemeshard_import_getters.cpp @@ -677,7 +677,7 @@ class TSchemeGetter: public TGetterFromS3 { ChangefeedsPrefixes.reserve(objects.size()); for (const auto& obj : objects) { - const TFsPath& path = obj.GetKey(); + const TFsPath path = obj.GetKey(); if (path.GetName() == "changefeed_description.pb") { ChangefeedsPrefixes.push_back(path.Parent().GetName()); } @@ -699,7 +699,7 @@ class TSchemeGetter: public TGetterFromS3 { void ListChangefeeds() { CreateClient(); - ListObjects(ImportInfo->GetItemSrcPrefix(ItemIdx)); + ListObjects(ImportInfo->GetItemSrcPrefix(ItemIdx) + "/"); } void DownloadMetadata() {