Bug #108104 | LOCK_status affect transaction performance when do a "show status" command | ||
---|---|---|---|
Submitted: | 10 Aug 2022 3:06 | Modified: | 10 Aug 2022 12:39 |
Reporter: | shang canfang (OCA) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S5 (Performance) |
Version: | MySQL5.7.26 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[10 Aug 2022 3:06]
shang canfang
[10 Aug 2022 8:15]
shang canfang
Sorry, correct it,the command is "show global status", not "show status"
[10 Aug 2022 12:39]
MySQL Verification Team
Hi Mr. ye, Thank you for your bug report. However, this is not a bug. If our code needs to change status, it must first acquire LOCK_status. That is due to the multi-thread access to the same part of the code, which means that protection is mandatory. Since this is about ever-changing binary log coordinates, then `trylock` is simply not good enough. Also, you analyse code from an ancient release, which is very , very old. Better look at 5.7.39 and 8.0.30. Not a bug.