null handle in rpc
This commit is contained in:
parent
178b3dd5aa
commit
c2c74b82a3
|
@ -461,6 +461,8 @@ void mndProcessMsg(SMnodeMsg *pMsg) {
|
||||||
|
|
||||||
PROCESS_RPC_END:
|
PROCESS_RPC_END:
|
||||||
if (isReq) {
|
if (isReq) {
|
||||||
|
if (pMsg->rpcMsg.handle == NULL) return;
|
||||||
|
|
||||||
if (code == TSDB_CODE_APP_NOT_READY) {
|
if (code == TSDB_CODE_APP_NOT_READY) {
|
||||||
mndSendRedirectRsp(pMnode, &pMsg->rpcMsg);
|
mndSendRedirectRsp(pMnode, &pMsg->rpcMsg);
|
||||||
} else if (code != 0) {
|
} else if (code != 0) {
|
||||||
|
|
|
@ -419,7 +419,7 @@ void rpcSendRequest(void *shandle, const SEpSet *pEpSet, SRpcMsg *pMsg, int64_t
|
||||||
}
|
}
|
||||||
|
|
||||||
void rpcSendResponse(const SRpcMsg *pRsp) {
|
void rpcSendResponse(const SRpcMsg *pRsp) {
|
||||||
if (pRsp->handle == NULL) return;
|
ASSERT(pRsp->handle != NULL);
|
||||||
|
|
||||||
int msgLen = 0;
|
int msgLen = 0;
|
||||||
SRpcConn *pConn = (SRpcConn *)pRsp->handle;
|
SRpcConn *pConn = (SRpcConn *)pRsp->handle;
|
||||||
|
|
Loading…
Reference in New Issue