!171 【回合】修复灰度升级过程中切主的问题

Merge pull request !171 from 薛蒙恩/upgrade_problem_master
This commit is contained in:
opengauss_bot 2023-12-29 08:45:51 +00:00 committed by Gitee
commit 9538cbcc38
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2213,11 +2213,7 @@ static void DnArbitrateInner(DnArbCtx *ctx)
static bool IsMaintance(maintenance_mode mode)
{
if (mode == MAINTENANCE_MODE_UPGRADE || mode == MAINTENANCE_MODE_UPGRADE_OBSERVATION ||
mode == MAINTENANCE_MODE_DILATATION || mode == MAINTENANCE_NODE_DISASTER_RECOVERY) {
return true;
}
return false;
return mode != MAINTENANCE_MODE_NONE;
}
static void InitDnArbCond(DnArbCtx *ctx)