修复CM集群暂停状态下build操作超时的问题

This commit is contained in:
xue_meng_en 2023-03-15 21:26:21 +08:00
parent 6ba8937db0
commit 8b5d4275e7

View File

@ -2287,6 +2287,7 @@ void DatanodeInstanceArbitrate(MsgRecvInfo* recvMsgInfo, const agent_to_cm_datan
(void)pthread_rwlock_wrlock(ctx.lock);
ResetHeartbeat(&ctx);
SaveDnStatusFromReport(agentRep, &ctx);
InitDnInfo(&ctx);
/* skip arbitration when the cluster is pausing,
* but cm_ctl operation is allowed, it's necessary to clean some falgs.
@ -2298,7 +2299,6 @@ void DatanodeInstanceArbitrate(MsgRecvInfo* recvMsgInfo, const agent_to_cm_datan
return;
}
InitDnInfo(&ctx);
DnArbitrateInner(&ctx);
(void)pthread_rwlock_unlock(ctx.lock);
}