diff --git a/src/Disks/IO/ReadBufferFromRemoteFSGather.cpp b/src/Disks/IO/ReadBufferFromRemoteFSGather.cpp index 8f91804bbbe..12c800d2e4e 100644 --- a/src/Disks/IO/ReadBufferFromRemoteFSGather.cpp +++ b/src/Disks/IO/ReadBufferFromRemoteFSGather.cpp @@ -43,7 +43,7 @@ SeekableReadBufferPtr ReadBufferFromS3Gather::createImplementationBuffer(const S auto remote_file_reader_creator = [=, this]() { return std::make_unique( - client_ptr, bucket, fs::path(metadata.remote_fs_root_path) / path, max_single_read_retries, + client_ptr, bucket, version_id, fs::path(metadata.remote_fs_root_path) / path, max_single_read_retries, settings, /* use_external_buffer */true, read_until_position, /* restricted_seek */true); }; diff --git a/src/Disks/IO/ReadBufferFromRemoteFSGather.h b/src/Disks/IO/ReadBufferFromRemoteFSGather.h index 25bfe0b7e16..aa874aaccb0 100644 --- a/src/Disks/IO/ReadBufferFromRemoteFSGather.h +++ b/src/Disks/IO/ReadBufferFromRemoteFSGather.h @@ -104,12 +104,14 @@ public: const String & path_, std::shared_ptr client_ptr_, const String & bucket_, + const String & version_id_, IDiskRemote::Metadata metadata_, size_t max_single_read_retries_, const ReadSettings & settings_) : ReadBufferFromRemoteFSGather(metadata_, settings_, path_) , client_ptr(std::move(client_ptr_)) , bucket(bucket_) + , version_id(version_id_) , max_single_read_retries(max_single_read_retries_) { } @@ -119,6 +121,7 @@ public: private: std::shared_ptr client_ptr; String bucket; + String version_id; UInt64 max_single_read_retries; }; #endif