[MDEV-5134] emb_free_embedded_thd is not thread safe Created: 2013-10-14 Updated: 2013-10-16 Due: 2013-10-28 Resolved: 2013-10-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.33 |
| Fix Version/s: | 5.5.34 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vilho Raatikka | Assignee: | Alexey Botchkov |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Description |
|
static void emb_free_embedded_thd(MYSQL *mysql) thread_count is global but it is modified without protection. In a multi-core env this will lead to lost updates or at least, race conditions. |
| Comments |
| Comment by Alexey Botchkov [ 2013-10-16 ] |
|
As I understand that was closed as a part of this one: |