提交 93371c71 编写于 作者: H hjxilinx

add some log for close connection

上级 5683cb5b
......@@ -89,7 +89,7 @@ void tscProcessActivityTimer(void *handle, void *tmrId) {
pSql->pTscObj = pObj;
pSql->signature = pSql;
pObj->pHb = pSql;
tscTrace("%p pHb is allocated, pObj:%p", pObj->pHb, pObj);
tscTrace("%p pHb is allocated, pObj:%p, pSql:%p", pObj->pHb, pObj, pObj->pSql);
}
if (tscShouldFreeHeatBeat(pObj->pHb)) {
......
......@@ -183,6 +183,8 @@ TAOS *taos_connect_a(char *ip, char *user, char *pass, char *db, int port, void
void taos_close(TAOS *taos) {
STscObj *pObj = (STscObj *)taos;
tscTrace("%p start to close connection, pSql:%p, HB:%p", pObj, pObj->pSql, pObj->pHb);
if (pObj == NULL) return;
if (pObj->signature != pObj) return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册