[MDEV-24334] make monitor_set_tbl global variable thread-safe Created: 2020-12-02 Updated: 2020-12-03 Resolved: 2020-12-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4.18, 10.5.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Eugene Kosov (Inactive) | Assignee: | Eugene Kosov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | tsan | ||
| Description |
|
Make it std::atomic[] and use std::atomic::fetch_or() and std::atomic::fetch_and(). |