diff --git a/src/server/cluster/cluster_config.cc b/src/server/cluster/cluster_config.cc index c86786c84d2a..05995df56843 100644 --- a/src/server/cluster/cluster_config.cc +++ b/src/server/cluster/cluster_config.cc @@ -40,7 +40,7 @@ bool HasValidNodeIds(const ClusterShardInfos& new_config) { bool IsConfigValid(const ClusterShardInfos& new_config) { // Make sure that all slots are set exactly once. - array slots_found = {}; + vector slots_found(cluster::kMaxSlotNum + 1); if (!HasValidNodeIds(new_config)) { return false;