mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
fix: Stack overflow in DFLYCLUSTER CONFIG
(#4342)
fix: Stack overflow in `DFLYCLUSTER CONFIG` It's fine to use the heap in such cases, latency doesn't matter.
This commit is contained in:
parent
e462fc0401
commit
79c4a1809b
1 changed files with 1 additions and 1 deletions
|
@ -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<bool, cluster::kMaxSlotNum + 1> slots_found = {};
|
||||
vector<bool> slots_found(cluster::kMaxSlotNum + 1);
|
||||
|
||||
if (!HasValidNodeIds(new_config)) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue