Skip to content

Commit

Permalink
cherry pick from nebula: fix cluster id is not backuped (vesoft-inc#5573
Browse files Browse the repository at this point in the history
) (vesoft-inc#2815)

fix cluster id is not backuped (vesoft-inc#5573)

Co-authored-by: Doodle <[email protected]>
  • Loading branch information
Sophie-Xie and critical27 authored Jun 6, 2023
1 parent ecacd63 commit a832d57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/utils/MetaKeyUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ static const std::unordered_map<std::string, std::pair<std::string, bool>> syste

// SystemInfo will always be backed up
static const std::unordered_map<std::string, std::pair<std::string, bool>> 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<
Expand Down

0 comments on commit a832d57

Please sign in to comment.