Add storage_policy to RestoreSettings in order to allow it in the SETTINGS clause of RESTORE queries

This commit is contained in:
Victor Krasnov 2023-07-26 14:40:50 +03:00
parent d4737ca033
commit 06b782d37a
2 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,7 @@ namespace
M(Bool, allow_s3_native_copy) \
M(Bool, internal) \
M(String, host_id) \
M(String, storage_policy) \
M(OptionalUUID, restore_uuid)

View File

@ -117,6 +117,9 @@ struct RestoreSettings
/// The current host's ID in the format 'escaped_host_name:port'.
String host_id;
/// Alterative storage policy that may be specified in the SETTINGS clause of RESTORE queries
String storage_policy;
/// Internal, should not be specified by user.
/// Cluster's hosts' IDs in the format 'escaped_host_name:port' for all shards and replicas in a cluster specified in BACKUP ON CLUSTER.
std::vector<Strings> cluster_host_ids;