fix: fix mem size limit
This commit is contained in:
parent
730851ecc3
commit
079e586afb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue