Skip to content

Commit

Permalink
Merge branch 'release/s113' of https://github.com/taosdata/TDengine i…
Browse files Browse the repository at this point in the history
…nto release/s113
  • Loading branch information
plum-lihui committed Jan 30, 2021
2 parents 3106539 + 03f232f commit f3ffd0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/client/src/tscSystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ void taos_cleanup(void) {
taosCloseRef(id);

taosCleanupKeywordsTable();
taosCloseLog();

p = tscRpcCache;
tscRpcCache = NULL;
Expand All @@ -226,7 +225,10 @@ void taos_cleanup(void) {
pthread_mutex_destroy(&rpcObjMutex);
}

if (tscEmbedded == 0) rpcCleanup();
if (tscEmbedded == 0) {
taosCloseLog();
rpcCleanup();
}

p = tscTmr;
tscTmr = NULL;
Expand Down
6 changes: 3 additions & 3 deletions src/rpc/src/rpcTcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,10 @@ void *taosInitTcpClient(uint32_t ip, uint16_t port, char *label, int numOfThread
}

void taosStopTcpClient(void *chandle) {
SThreadObj *pThreadObj = chandle;
if (pThreadObj == NULL) return;
SClientObj *pClientObj = chandle;
if (pClientObj == NULL) return;

tDebug ("%s TCP client is stopped", pThreadObj->label);
tDebug ("%s TCP client is stopped", pClientObj->label);
}

void taosCleanUpTcpClient(void *chandle) {
Expand Down

0 comments on commit f3ffd0a

Please sign in to comment.