fix: fix mem size limit

This commit is contained in:
yihaoDeng 2022-05-17 09:59:22 +08:00
parent 730851ecc3
commit 079e586afb
1 changed files with 9 additions and 9 deletions

View File

@ -152,7 +152,7 @@ void *taosAllocateQitem(int32_t size, EQItype itype) {
if (itype == RPC_QITEM) {
int64_t alloced = atomic_add_fetch_64(&tsRpcQueueMemoryUsed, size);
if (alloced > tsRpcQueueMemoryUsed) {
if (alloced > tsRpcQueueMemoryAllowed) {
taosMemoryFree(pNode);
terrno = TSDB_CODE_OUT_OF_RPC_MEMORY_QUEUE;
return NULL;