From 8cc41521ad176a83640d22a52ddd98845d0fe4f4 Mon Sep 17 00:00:00 2001 From: Alexander Gololobov <440544+davenger@users.noreply.github.com> Date: Tue, 17 May 2022 14:35:12 +0200 Subject: [PATCH] tidy build fix --- src/Backups/BackupUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Backups/BackupUtils.cpp b/src/Backups/BackupUtils.cpp index 33312e8b44b..270dad2d594 100644 --- a/src/Backups/BackupUtils.cpp +++ b/src/Backups/BackupUtils.cpp @@ -366,7 +366,7 @@ namespace { if (info.zk_path.empty()) { - for (auto & [relative_path, backup_entry] : info.data) + for (const auto & [relative_path, backup_entry] : info.data) res.emplace_back(info.data_path + relative_path, backup_entry); return; } @@ -374,7 +374,7 @@ namespace Strings data_paths = backup_coordination->getReplicatedTableDataPaths(info.zk_path); Strings part_names = backup_coordination->getReplicatedTablePartNames(backup_settings.host_id, info.table_name, info.zk_path); std::unordered_set part_names_set{part_names.begin(), part_names.end()}; - for (auto & [relative_path, backup_entry] : info.data) + for (const auto & [relative_path, backup_entry] : info.data) { size_t slash_pos = relative_path.find('/'); if (slash_pos != String::npos)