Skip to content

fix: panic when cluster state file is empty - #11

Open
linxside wants to merge 1 commit into
xorpaul:masterfrom
linxside:fix/panic-when-clusterfile-empty
Open

fix: panic when cluster state file is empty#11
linxside wants to merge 1 commit into
xorpaul:masterfrom
linxside:fix/panic-when-clusterfile-empty

Conversation

@linxside

@linxside linxside commented Mar 4, 2026

Copy link
Copy Markdown

This MR fixes a panic in the "checkClusterState" function when the state file is empty. In that case an instance of "clusterState" would be created and all values except the map "CurrentRestartingServers" would be initialized. This causes in the function a panic and prevents the write of a correct state into the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant