修复灰度升级过程中切主的问题
This commit is contained in:
parent
6c460b45ca
commit
a83e87d8dd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user