提交 6ce1c1a1 编写于 作者: H Haojun Liao

[td-225] add some logs.

上级 26b4478d
......@@ -199,17 +199,20 @@ void tscProcessActivityTimer(void *handle, void *tmrId) {
pObj->pHb = pSql;
tscAddSubqueryInfo(&pObj->pHb->cmd);
tscDebug("%p pHb is allocated, pObj:%p", pObj->pHb, pObj);
tscDebug("%p HB is allocated, pObj:%p", pObj->pHb, pObj);
}
if (tscShouldFreeHeatBeat(pObj->pHb)) {
tscDebug("%p free HB object and release connection", pObj);
tscDebug("%p free HB object and release connection", pObj->pHb);
tscFreeSqlObj(pObj->pHb);
tscCloseTscObj(pObj);
return;
} else {
// taosMsleep(500);
int32_t code = tscProcessSql(pObj->pHb);
if (code != TSDB_CODE_SUCCESS) {
tscError("%p failed to sent HB to server, reason:%s", pObj->pHb, tstrerror(code));
}
}
tscProcessSql(pObj->pHb);
}
int tscSendMsgToServer(SSqlObj *pSql) {
......
......@@ -181,6 +181,7 @@ TAOS *taos_connect(const char *ip, const char *user, const char *pass, const cha
return NULL;
}
TAOS *taos_connect_c(const char *ip, uint8_t ipLen, const char *user, uint8_t userLen,
const char *pass, uint8_t passLen, const char *db, uint8_t dbLen, uint16_t port) {
char ipBuf[TSDB_EP_LEN] = {0};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册