diff --git a/src/Disks/S3/DiskS3.cpp b/src/Disks/S3/DiskS3.cpp index ead449c6a7c..7580bb9f874 100644 --- a/src/Disks/S3/DiskS3.cpp +++ b/src/Disks/S3/DiskS3.cpp @@ -151,6 +151,7 @@ void logIfError(const Aws::Utils::Outcome & response, Fnthread_pool_size) , bucket(std::move(bucket_)) + , version_id(std::move(version_id_)) , current_settings(std::move(settings_)) , settings_getter(settings_getter_) , context(context_) diff --git a/src/Disks/S3/DiskS3.h b/src/Disks/S3/DiskS3.h index 2de1600d906..664cb05d66b 100644 --- a/src/Disks/S3/DiskS3.h +++ b/src/Disks/S3/DiskS3.h @@ -72,6 +72,7 @@ public: DiskS3( String name_, String bucket_, + String version_id_, String s3_root_path_, DiskPtr metadata_disk_, FileCachePtr cache_, @@ -163,6 +164,8 @@ private: const String bucket; + const String version_id; + MultiVersion current_settings; /// Gets disk settings from context. GetDiskSettings settings_getter;