mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Merge pull request #58949 from MikhailBurdukov/fix_s3_copy
Using the destination object for paths generation in S3copy.
This commit is contained in:
commit
8a288055c9
@ -538,7 +538,7 @@ struct CopyFileObjectStorageOperation final : public IDiskObjectStorageOperation
|
|||||||
|
|
||||||
for (const auto & object_from : source_blobs)
|
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());
|
auto object_to = StoredObject(object_key.serialize());
|
||||||
|
|
||||||
object_storage.copyObjectToAnotherObjectStorage(object_from, object_to,read_settings,write_settings, destination_object_storage);
|
object_storage.copyObjectToAnotherObjectStorage(object_from, object_to,read_settings,write_settings, destination_object_storage);
|
||||||
|
Loading…
Reference in New Issue
Block a user