commit
5cfcf21bf3
|
@ -64,7 +64,7 @@ void tscReleaseRpc(void *param) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pthread_mutex_lock(&rpcObjMutex);
|
pthread_mutex_lock(&rpcObjMutex);
|
||||||
taosCacheRelease(tscRpcCache, (void *)¶m, true);
|
taosCacheRelease(tscRpcCache, (void *)¶m, false);
|
||||||
pthread_mutex_unlock(&rpcObjMutex);
|
pthread_mutex_unlock(&rpcObjMutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ int32_t tscAcquireRpc(const char *key, const char *user, const char *secretEncry
|
||||||
tscError("failed to init connection to TDengine");
|
tscError("failed to init connection to TDengine");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
pRpcObj = taosCachePut(tscRpcCache, rpcObj.key, strlen(rpcObj.key), &rpcObj, sizeof(rpcObj), 1000*10);
|
pRpcObj = taosCachePut(tscRpcCache, rpcObj.key, strlen(rpcObj.key), &rpcObj, sizeof(rpcObj), 1000*5);
|
||||||
if (pRpcObj == NULL) {
|
if (pRpcObj == NULL) {
|
||||||
rpcClose(rpcObj.pDnodeConn);
|
rpcClose(rpcObj.pDnodeConn);
|
||||||
pthread_mutex_unlock(&rpcObjMutex);
|
pthread_mutex_unlock(&rpcObjMutex);
|
||||||
|
@ -154,6 +154,7 @@ void taos_init_imp(void) {
|
||||||
if (tscNumOfThreads < 2) {
|
if (tscNumOfThreads < 2) {
|
||||||
tscNumOfThreads = 2;
|
tscNumOfThreads = 2;
|
||||||
}
|
}
|
||||||
|
taosTmrThreads = tscNumOfThreads;
|
||||||
|
|
||||||
tscQhandle = taosInitScheduler(queueSize, tscNumOfThreads, "tsc");
|
tscQhandle = taosInitScheduler(queueSize, tscNumOfThreads, "tsc");
|
||||||
if (NULL == tscQhandle) {
|
if (NULL == tscQhandle) {
|
||||||
|
|
|
@ -7649,7 +7649,10 @@ int32_t qDumpRetrieveResult(qinfo_t qinfo, SRetrieveTableRsp **pRsp, int32_t *co
|
||||||
*continueExec = true;
|
*continueExec = true;
|
||||||
qDebug("QInfo:%p has more results to retrieve", pQInfo);
|
qDebug("QInfo:%p has more results to retrieve", pQInfo);
|
||||||
}
|
}
|
||||||
|
if (pQInfo->code != TSDB_CODE_SUCCESS) {
|
||||||
|
rpcFreeCont(*pRsp);
|
||||||
|
*pRsp = NULL;
|
||||||
|
}
|
||||||
return pQInfo->code;
|
return pQInfo->code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue