!188 资源池化下,防止让状态为invalid的节点进行状态检测

Merge pull request !188 from yeguanyu/fix_invalid_check
This commit is contained in:
opengauss_bot 2024-04-10 02:34:32 +00:00 committed by Gitee
commit 0e0bd1c6e1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -212,7 +212,7 @@ static void ChangeCheckList(uint32 errIndex)
}
for (uint32 i = (newIndex + 1); i < g_isregCheckList.nodeCount; ++i) {
if ((i == errIndex) && !g_isregCheckList.nodeCheck[i].isValid) {
if ((i == errIndex) || !g_isregCheckList.nodeCheck[i].isValid) {
continue;
}
if (g_isregCheckList.nodeCheck[i].checkCount < g_isregCheckList.nodeCheck[newIndex].checkCount) {