From e4f91de7bbaaa3fa320b722716d9ea1bef768111 Mon Sep 17 00:00:00 2001 From: Doodle <13706157+critical27@users.noreply.github.com> Date: Mon, 5 Jun 2023 18:15:19 +0800 Subject: [PATCH] fix cluster id is not backuped (#5573) Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com> --- src/common/utils/MetaKeyUtils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/utils/MetaKeyUtils.cpp b/src/common/utils/MetaKeyUtils.cpp index c229a921d4b..d5eebe53de8 100644 --- a/src/common/utils/MetaKeyUtils.cpp +++ b/src/common/utils/MetaKeyUtils.cpp @@ -32,7 +32,9 @@ static const std::unordered_map> syste // SystemInfo will always be backed up static const std::unordered_map> systemInfoMaps{ - {"autoIncrementId", {"__id__", true}}, {"lastUpdateTime", {"__last_update_time__", true}}}; + {"autoIncrementId", {"__id__", true}}, + {"lastUpdateTime", {"__last_update_time__", true}}, + {"clusterId", {"__meta_cluster_id_key__", true}}}; // name => {prefix, parseSpaceid}, nullptr means that the backup should be skipped. static const std::unordered_map<