diff --git a/source/client/src/clientMsgHandler.c b/source/client/src/clientMsgHandler.c index 78e2bc9d2d9786ba41f47fae98b70d693f398273..b228deb8ed9c53e2d772a69421657a924b78b962 100644 --- a/source/client/src/clientMsgHandler.c +++ b/source/client/src/clientMsgHandler.c @@ -48,8 +48,6 @@ int32_t genericRspCallback(void* param, SDataBuf* pMsg, int32_t code) { int32_t processConnectRsp(void* param, SDataBuf* pMsg, int32_t code) { SRequestObj *pRequest = acquireRequest(*(int64_t*)param); if (NULL == pRequest) { - setErrno(pRequest, TSDB_CODE_TSC_DISCONNECTED); - tsem_post(&pRequest->body.rspSem); goto End; } diff --git a/source/common/src/tname.c b/source/common/src/tname.c index 4d83b6e3d84bfd2ab123efd0720b90ebca18ce81..0d47ef1e7f70c791a32feaa6b4075bd9c625d69f 100644 --- a/source/common/src/tname.c +++ b/source/common/src/tname.c @@ -316,6 +316,7 @@ static int compareKv(const void* p1, const void* p2) { void buildChildTableName(RandTableName* rName) { SStringBuilder sb = {0}; taosStringBuilderAppendStringLen(&sb, rName->stbFullName, rName->stbFullNameLen); + if(sb.buf == NULL) return; taosArraySort(rName->tags, compareKv); for (int j = 0; j < taosArrayGetSize(rName->tags); ++j) { taosStringBuilderAppendChar(&sb, ',');