Skip to content

fix(rpc):use tsApplyMemoryAllowed to control memory alloc while apply msg.#29618

Merged
guanshengliang merged 4 commits into
mainfrom
fix/main/TS-5937
Jan 21, 2025
Merged

fix(rpc):use tsApplyMemoryAllowed to control memory alloc while apply msg.#29618
guanshengliang merged 4 commits into
mainfrom
fix/main/TS-5937

Conversation

@xiao-77
Copy link
Copy Markdown
Contributor

@xiao-77 xiao-77 commented Jan 21, 2025

Description

Please briefly describe the code changes in this pull request.

Checklist

Please check the items in the checklist if applicable.

  • Is the user manual updated?
  • Are the test cases passed and automated?
  • Is there no significant decrease in test coverage?

@guanshengliang guanshengliang merged commit 2f1a0f6 into main Jan 21, 2025
Comment thread source/util/src/tqueue.c
int64_t alloced = -1;

if (alloced > tsQueueMemoryAllowed) {
alloced = atomic_add_fetch_64(&tsQueueMemoryUsed, size + dataSize);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个逻辑永远都进不来,tsQueueMemoryUsed 应该是控制不住。看一下,是期望的改动吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants