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

Fix SQLLog.compactor #209

Merged
merged 1 commit into from
Aug 25, 2023
Merged

Conversation

hangscer8
Copy link
Contributor

Because it will cause memory leak if we do not stop ticker when the function has completed.

Because it will cause memory leak if we do not stop ticker when the function has completed.

Signed-off-by: hang.jiang <hang.jiang@daocloud.io>
@brandond
Copy link
Member

Sure, but this goroutine never exits unless the whole process is terminating. Have you run into any circumstances where this actual causes a leak of the timer?

@hangscer8
Copy link
Contributor Author

@brandond I think you are right, this pr just keeps code normal.

@brandond brandond merged commit 62205ba into k3s-io:master Aug 25, 2023
1 check passed
brandond added a commit to johnatasr/k3s that referenced this pull request Sep 15, 2023
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
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.

2 participants