[Disks] Version ID added.

Version ID added to constructor.
This commit is contained in:
Saad Ur Rahman 2022-03-14 21:25:00 -04:00
parent f299bf46e2
commit e3a96393a1
No known key found for this signature in database
GPG Key ID: C6773CD21542E49C
2 changed files with 5 additions and 0 deletions

View File

@ -151,6 +151,7 @@ void logIfError(const Aws::Utils::Outcome<Result, Error> & response, Fn<String()
DiskS3::DiskS3(
String name_,
String bucket_,
String version_id_,
String s3_root_path_,
DiskPtr metadata_disk_,
FileCachePtr cache_,
@ -159,6 +160,7 @@ DiskS3::DiskS3(
GetDiskSettings settings_getter_)
: IDiskRemote(name_, s3_root_path_, metadata_disk_, std::move(cache_), "DiskS3", settings_->thread_pool_size)
, bucket(std::move(bucket_))
, version_id(std::move(version_id_))
, current_settings(std::move(settings_))
, settings_getter(settings_getter_)
, context(context_)

View File

@ -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<DiskS3Settings> current_settings;
/// Gets disk settings from context.
GetDiskSettings settings_getter;