未验证 提交 9aa868e9 编写于 作者: M Minglei Jin 提交者: GitHub

Merge pull request #12888 from taosdata/fix/TS-1550-2.4

fix: fixed a compatibility bug between 2.4 and 2.6
......@@ -548,7 +548,7 @@ static int32_t mnodeProcessDnodeStatusMsg(SMnodeMsg *pMsg) {
pStatus->numOfCores = htons(pStatus->numOfCores);
uint32_t _version = htonl(pStatus->version);
if (_version != tsVersion >> 8) {
if ((_version >> 16) != (tsVersion >> 24)) {
pDnode = mnodeGetDnodeByEp(pStatus->dnodeEp);
if (pDnode != NULL && pDnode->status != TAOS_DN_STATUS_READY) {
pDnode->offlineReason = TAOS_DN_OFF_VERSION_NOT_MATCH;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册