-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
server: move log operation out of the lock scope #11536
Conversation
It's a bad style to print log under a lock, tiny refactor to make the code better. Lock() is also changed to RLock() to reduce lock contend
PTAL @jackysp @crazycs520 |
Codecov Report
@@ Coverage Diff @@
## master #11536 +/- ##
===========================================
Coverage 81.3019% 81.3019%
===========================================
Files 425 425
Lines 91662 91662
===========================================
Hits 74523 74523
Misses 11787 11787
Partials 5352 5352 |
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
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
/run-all-tests |
@tiancaiamao merge failed. |
cherry pick to release-3.0 failed |
It seems that, not for sure, we failed to cherry-pick this commit to release-3.0. Please comment '/run-cherry-picker' to try to trigger the cherry-picker if we did fail to cherry-pick this commit before. @tiancaiamao PTAL. |
What problem does this PR solve?
Tiny refactor
What is changed and how it works?
It's a bad style to print log under a lock, tiny refactor to make the code better.
Lock() is also changed to RLock() to reduce lock contend
Check List
Tests