提交 fcf07025 编写于 作者: D dapan1121

Merge branch 'feature/qnode' of github.com:taosdata/TDengine into feature/qnode

...@@ -159,7 +159,7 @@ static void destroyThrdObj(SCliThrdObj* pThrd); ...@@ -159,7 +159,7 @@ static void destroyThrdObj(SCliThrdObj* pThrd);
int i = 0, sz = transQueueSize(&conn->cliMsgs); \ int i = 0, sz = transQueueSize(&conn->cliMsgs); \
for (; i < sz; i++) { \ for (; i < sz; i++) { \
pMsg = transQueueGet(&conn->cliMsgs, i); \ pMsg = transQueueGet(&conn->cliMsgs, i); \
if (pMsg != NULL && (uint64_t)pMsg->ctx->ahandle == ahandle) { \ if (pMsg != NULL && pMsg->ctx != NULL && (uint64_t)pMsg->ctx->ahandle == ahandle) { \
break; \ break; \
} \ } \
} \ } \
......
...@@ -292,7 +292,7 @@ void uvOnSendCb(uv_write_t* req, int status) { ...@@ -292,7 +292,7 @@ void uvOnSendCb(uv_write_t* req, int status) {
} }
transQueuePop(&conn->srvMsgs); transQueuePop(&conn->srvMsgs);
tfree(msg); tfree(msg);
msg = (SSrvMsg*)transQueuePop(&conn->srvMsgs); msg = (SSrvMsg*)transQueueGet(&conn->srvMsgs, 0);
if (msg != NULL) { if (msg != NULL) {
uvStartSendRespInternal(msg); uvStartSendRespInternal(msg);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册