Merge pull request #58949 from MikhailBurdukov/fix_s3_copy

Using the destination object for  paths generation in S3copy.
This commit is contained in:
Alexey Milovidov 2024-01-19 09:28:13 +01:00 committed by GitHub
commit 8a288055c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -538,7 +538,7 @@ struct CopyFileObjectStorageOperation final : public IDiskObjectStorageOperation
for (const auto & object_from : source_blobs)
{
auto object_key = object_storage.generateObjectKeyForPath(to_path);
auto object_key = destination_object_storage.generateObjectKeyForPath(to_path);
auto object_to = StoredObject(object_key.serialize());
object_storage.copyObjectToAnotherObjectStorage(object_from, object_to,read_settings,write_settings, destination_object_storage);