提交 79856c6e 编写于 作者: wmmhello's avatar wmmhello

[TD-11544]<feature>(query):compatibility between old version client and new version server

上级 ed834ce8
......@@ -963,7 +963,8 @@ static SRpcConn *rpcProcessMsgHead(SRpcInfo *pRpc, SRecvInfo *pRecv, SRpcReqCont
terrno = TSDB_CODE_RPC_INVALID_SESSION_ID; return NULL;
}
if (rpcIsReq(pHead->msgType) && htonl(pHead->msgVer) != tsVersion >> 8) {
// compatibility between old version client and new version server, since 2.4.0.0
if (rpcIsReq(pHead->msgType) && htonl(pHead->msgVer) < ((2 << 24) | (4 << 16)) && htonl(pHead->msgVer) >> 16 != tsVersion >> 24) {
tDebug("%s sid:%d, invalid client version:%x/%x %s", pRpc->label, sid, htonl(pHead->msgVer), tsVersion, taosMsg[pHead->msgType]);
terrno = TSDB_CODE_RPC_INVALID_VERSION; return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册