change default value
This commit is contained in:
parent
f975d8e0d9
commit
27e6a0c344
|
@ -1697,7 +1697,11 @@ static SCliThrd* createThrdObj(void* trans) {
|
||||||
taosMemoryFree(pThrd);
|
taosMemoryFree(pThrd);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
pThrd->asyncPool = transAsyncPoolCreate(pThrd->loop, 8, pThrd, cliAsyncCb);
|
if (pTransInst->supportBatch) {
|
||||||
|
pThrd->asyncPool = transAsyncPoolCreate(pThrd->loop, 4, pThrd, cliAsyncCb);
|
||||||
|
} else {
|
||||||
|
pThrd->asyncPool = transAsyncPoolCreate(pThrd->loop, 8, pThrd, cliAsyncCb);
|
||||||
|
}
|
||||||
if (pThrd->asyncPool == NULL) {
|
if (pThrd->asyncPool == NULL) {
|
||||||
tError("failed to init async pool");
|
tError("failed to init async pool");
|
||||||
uv_loop_close(pThrd->loop);
|
uv_loop_close(pThrd->loop);
|
||||||
|
|
Loading…
Reference in New Issue