Skip to content

Commit

Permalink
Merge pull request #29627 from taosdata/fix/main/TS-5937
Browse files Browse the repository at this point in the history
Fix merge errors from pr 29618.
  • Loading branch information
hzcheng authored Jan 21, 2025
2 parents 2f10787 + c2068ea commit c99a1c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/util/src/tqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ int64_t taosQueueMemorySize(STaosQueue *queue) {
int32_t taosAllocateQitem(int32_t size, EQItype itype, int64_t dataSize, void **item) {
int64_t alloced = -1;

if (alloced > tsQueueMemoryAllowed) {
if (itype == RPC_QITEM) {
alloced = atomic_add_fetch_64(&tsQueueMemoryUsed, size + dataSize);
if (itype == RPC_QITEM) {
if (alloced > tsQueueMemoryAllowed) {
uError("failed to alloc qitem, size:%" PRId64 " alloc:%" PRId64 " allowed:%" PRId64, size + dataSize, alloced,
tsQueueMemoryAllowed);
(void)atomic_sub_fetch_64(&tsQueueMemoryUsed, size + dataSize);
Expand Down

0 comments on commit c99a1c5

Please sign in to comment.