[MDEV-21551] tpool : fix calculation of currently active tasks in maybe_wake_or_create_thread() Created: 2020-01-21 Updated: 2020-03-25 Resolved: 2020-03-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.5.1 |
| Fix Version/s: | 10.5.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vladislav Vaintroub | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
A task that is executed,could be counted as waiting (after wait_begin() If task is both marked waiting and long-running, then calculation of the number above could go negative, with unsigned arithmetic it will become a huge. As a result, maybe_wake_or_create_thread() would neither wake nor create |