pitrou commented on a change in pull request #9474: URL: https://github.com/apache/arrow/pull/9474#discussion_r574720665
########## File path: cpp/src/arrow/filesystem/filesystem.cc ########## @@ -443,34 +449,37 @@ Result<std::shared_ptr<io::OutputStream>> SlowFileSystem::OpenAppendStream( } Status CopyFiles(const std::vector<FileLocator>& sources, - const std::vector<FileLocator>& destinations, int64_t chunk_size, - bool use_threads) { + const std::vector<FileLocator>& destinations, + const io::IOContext& io_context, int64_t chunk_size, bool use_threads) { if (sources.size() != destinations.size()) { return Status::Invalid("Trying to copy ", sources.size(), " files into ", destinations.size(), " paths."); } - return ::arrow::internal::OptionalParallelFor( Review comment: Note that this was scheduling file copies on the CPU thread pool. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org