Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using semaphores to prevent excessive local file accumulation during output throttling. #1272

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

shihuafan
Copy link
Contributor

Make sure the stream output thread begins reading the file before the worker thread advances to the next step. This prevents excessive local file accumulation, which could occupy excessive disk space in scenarios where the output byte stream is blocked or consumed at a slow rate.

@davidducos
Copy link
Member

davidducos commented Aug 22, 2023

Hi @shihuafan,
Why didn't you use a GMutex structure instead of GAsyncQueue?

Oh! I see now, we can't use g_mutex_lock in the same thread!!

@davidducos davidducos added this to the Release 0.15.3-1 milestone Aug 22, 2023
@davidducos davidducos merged commit 7975d62 into mydumper:master Aug 22, 2023
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants