change queue limit
This commit is contained in:
parent
7b4f785a44
commit
7942a9bfd1
|
@ -149,8 +149,8 @@ int64_t taosQueueMemorySize(STaosQueue *queue) {
|
|||
|
||||
int32_t taosAllocateQitem(int32_t size, EQItype itype, int64_t dataSize, void **item) {
|
||||
int64_t alloced = atomic_add_fetch_64(&tsQueueMemoryUsed, size + dataSize);
|
||||
if (itype == RPC_QITEM) {
|
||||
if (alloced > tsQueueMemoryAllowed) {
|
||||
if (alloced > tsQueueMemoryAllowed) {
|
||||
if (itype == RPC_QITEM) {
|
||||
uError("failed to alloc qitem, size:%" PRId64 " alloc:%" PRId64 " allowed:%" PRId64, size + dataSize, alloced,
|
||||
tsQueueMemoryAllowed);
|
||||
(void)atomic_sub_fetch_64(&tsQueueMemoryUsed, size + dataSize);
|
||||
|
|
Loading…
Reference in New Issue