diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index d0b6bed3c0011067883b76074f7d0c56af8a7b84..1c838d22ae692ea01253b3f6acf81eef7dafd072 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -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)) { diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index 438e911adb448c9b143e8a0f7ceffeaf7c4b719f..41eabec703eb207119152da31954676a247e6c47 100644 --- a/src/client/src/tscSql.c +++ b/src/client/src/tscSql.c @@ -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;