Merge remote-tracking branch 'origin/develop' into patch/TD-1632
This commit is contained in:
commit
1e84441b7b
|
@ -83,12 +83,18 @@ sudo dnf install -y maven
|
||||||
|
|
||||||
## Get the source codes
|
## Get the source codes
|
||||||
|
|
||||||
- github:
|
First of all, you may clone the source codes from github:
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/taosdata/TDengine.git
|
git clone https://github.com/taosdata/TDengine.git
|
||||||
cd TDengine
|
cd TDengine
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The connectors for go & grafana have been moved to separated repositories,
|
||||||
|
so you should run this command in the TDengine directory to install them:
|
||||||
|
```bash
|
||||||
|
git submodule update --init --recursive
|
||||||
|
```
|
||||||
|
|
||||||
## Build TDengine
|
## Build TDengine
|
||||||
|
|
||||||
### On Linux platform
|
### On Linux platform
|
||||||
|
|
|
@ -342,8 +342,8 @@ void taosCleanUpTcpClient(void *chandle) {
|
||||||
SThreadObj *pThreadObj = chandle;
|
SThreadObj *pThreadObj = chandle;
|
||||||
if (pThreadObj == NULL) return;
|
if (pThreadObj == NULL) return;
|
||||||
|
|
||||||
|
tDebug ("%s TCP client will be cleaned up", pThreadObj->label);
|
||||||
taosStopTcpThread(pThreadObj);
|
taosStopTcpThread(pThreadObj);
|
||||||
tDebug ("%s TCP client is cleaned up", pThreadObj->label);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void *taosOpenTcpClientConnection(void *shandle, void *thandle, uint32_t ip, uint16_t port) {
|
void *taosOpenTcpClientConnection(void *shandle, void *thandle, uint32_t ip, uint16_t port) {
|
||||||
|
@ -378,7 +378,7 @@ void *taosOpenTcpClientConnection(void *shandle, void *thandle, uint32_t ip, uin
|
||||||
|
|
||||||
void taosCloseTcpConnection(void *chandle) {
|
void taosCloseTcpConnection(void *chandle) {
|
||||||
SFdObj *pFdObj = chandle;
|
SFdObj *pFdObj = chandle;
|
||||||
if (pFdObj == NULL) return;
|
if (pFdObj == NULL || pFdObj->signature != pFdObj) return;
|
||||||
|
|
||||||
SThreadObj *pThreadObj = pFdObj->pThreadObj;
|
SThreadObj *pThreadObj = pFdObj->pThreadObj;
|
||||||
tDebug("%s %p TCP connection will be closed, FD:%p", pThreadObj->label, pFdObj->thandle, pFdObj);
|
tDebug("%s %p TCP connection will be closed, FD:%p", pThreadObj->label, pFdObj->thandle, pFdObj);
|
||||||
|
@ -391,7 +391,7 @@ void taosCloseTcpConnection(void *chandle) {
|
||||||
int taosSendTcpData(uint32_t ip, uint16_t port, void *data, int len, void *chandle) {
|
int taosSendTcpData(uint32_t ip, uint16_t port, void *data, int len, void *chandle) {
|
||||||
SFdObj *pFdObj = chandle;
|
SFdObj *pFdObj = chandle;
|
||||||
|
|
||||||
if (chandle == NULL) return -1;
|
if (pFdObj == NULL || pFdObj->signature != pFdObj) return -1;
|
||||||
|
|
||||||
return taosWriteMsg(pFdObj->fd, data, len);
|
return taosWriteMsg(pFdObj->fd, data, len);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue