[td-225] add some logs.
This commit is contained in:
parent
26b4478db8
commit
6ce1c1a13f
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue