-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Fix cpu spin waiting for log write events #31070
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
Conversation
LGTM |
daemon/logger/jsonfilelog/read.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this construction looks extremely confusing for me, why don't just use for {} and do stuff inside?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, makes sense.
Updated.
This loop is not ever going to return since it's never actually setting the `err` var except on the first iteration. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
229d77b
to
7a17997
Compare
This is ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix cpu spin waiting for log write events (cherry picked from commit 39851ea) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This loop is not ever going to return since it's never actually setting
the
err
var except on the first iteration.Fixes #31060