[MDEV-27716] mtr_t::commit() unnecessarily acquires log_sys.mutex when writing no log Created: 2022-02-02 Updated: 2022-02-09 Resolved: 2022-02-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.5, 10.6, 10.7, 10.8 |
| Fix Version/s: | 10.5.15, 10.6.7, 10.7.3, 10.8.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | performance | ||
| Issue Links: |
|
||||||||||||
| Description |
|
In mtr_t::commit(), we acquire log_sys.mutex even when no redo log has been generated. Before log_sys.lsn was changed to be std::atomic in MariaDB 10.5.2, acquiring the mutex was necessary. Likewise, before |