platoneko commented on code in PR #35307:
URL: https://github.com/apache/doris/pull/35307#discussion_r1618567744
##########
be/src/io/fs/s3_file_system.cpp:
##########
@@ -454,54 +345,74 @@ Status S3FileSystem::batch_upload_impl(const
std::vector<Path>& local_files,
local_files.size(),
remote_files.size());
}
- Aws::Transfer::TransferManagerConfiguration
transfer_config(default_executor().get());
- transfer_config.s3Client = client;
- auto transfer_manager =
Aws::Transfer::TransferManager::Create(transfer_config);
+ std::vector<FileWriterPtr> obj_writers(local_files.size());
+
+ auto upload_task = [this](Path local_file, Path remote_file,
FileWriterPtr* obj_writer) {
Review Comment:
```suggestion
auto upload_task = [this, &](size_t idx) {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]