mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Review fix
This commit is contained in:
parent
f29c072429
commit
c10c30832c
@ -442,7 +442,7 @@ void S3ObjectStorage::copyObjectToAnotherObjectStorage( // NOLINT
|
||||
/// Shortcut for S3
|
||||
if (auto * dest_s3 = dynamic_cast<S3ObjectStorage * >(&object_storage_to); dest_s3 != nullptr)
|
||||
{
|
||||
auto clients_ = clients.get();
|
||||
auto clients_ = dest_s3->clients.get();
|
||||
auto settings_ptr = s3_settings.get();
|
||||
auto size = S3::getObjectSize(*clients_->client, bucket, object_from.remote_path, {}, settings_ptr->request_settings, /* for_disk_s3= */ true);
|
||||
auto scheduler = threadPoolCallbackRunner<void>(getThreadPoolWriter(), "S3ObjStor_copy");
|
||||
|
@ -181,6 +181,11 @@ def test_backup_to_disk(storage_policy, to_disk):
|
||||
"disk_s3_other_bucket",
|
||||
id="from_s3_to_s3",
|
||||
),
|
||||
pytest.param(
|
||||
"policy_s3_other_bucket",
|
||||
"disk_s3",
|
||||
id="from_s3_to_s3_other_bucket",
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_backup_from_s3_to_s3_disk_native_copy(storage_policy, to_disk):
|
||||
|
Loading…
Reference in New Issue
Block a user