Commit bbdec04
committed
MDEV-24317 Data race in LOGGER::init_error_log at sql/log.cc:1443 and in LOGGER::error_log_print at sql/log.cc:1181
don't initialize error_log_handler_list in set_handlers() * error_log_handler_list is initialized to LOG_FILE early, in init_base() * set_handlers always reinitializes it to LOG_FILE, so it's pointless * after init_base() concurrent threads start using sql_log_warning, so following set_handlers() shouldn't modify error_log_handler_list without some protection1 parent 6891c48 commit bbdec04
4 files changed
+8
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6576 | 6576 | | |
6577 | 6577 | | |
6578 | 6578 | | |
6579 | | - | |
| 6579 | + | |
6580 | 6580 | | |
6581 | 6581 | | |
6582 | 6582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1561 | 1561 | | |
1562 | 1562 | | |
1563 | 1563 | | |
1564 | | - | |
1565 | | - | |
| 1564 | + | |
1566 | 1565 | | |
1567 | 1566 | | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
1571 | 1567 | | |
1572 | 1568 | | |
1573 | 1569 | | |
| |||
1580 | 1576 | | |
1581 | 1577 | | |
1582 | 1578 | | |
1583 | | - | |
1584 | 1579 | | |
1585 | 1580 | | |
1586 | 1581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | | - | |
1107 | | - | |
| 1106 | + | |
1108 | 1107 | | |
1109 | 1108 | | |
1110 | 1109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3607 | 3607 | | |
3608 | 3608 | | |
3609 | 3609 | | |
3610 | | - | |
| 3610 | + | |
3611 | 3611 | | |
3612 | 3612 | | |
3613 | 3613 | | |
| |||
3642 | 3642 | | |
3643 | 3643 | | |
3644 | 3644 | | |
3645 | | - | |
3646 | | - | |
| 3645 | + | |
3647 | 3646 | | |
3648 | 3647 | | |
3649 | 3648 | | |
3650 | 3649 | | |
3651 | 3650 | | |
3652 | | - | |
3653 | | - | |
| 3651 | + | |
3654 | 3652 | | |
3655 | 3653 | | |
3656 | 3654 | | |
| |||
5571 | 5569 | | |
5572 | 5570 | | |
5573 | 5571 | | |
5574 | | - | |
| 5572 | + | |
5575 | 5573 | | |
5576 | 5574 | | |
5577 | 5575 | | |
| |||
5587 | 5585 | | |
5588 | 5586 | | |
5589 | 5587 | | |
5590 | | - | |
5591 | | - | |
| 5588 | + | |
5592 | 5589 | | |
5593 | 5590 | | |
5594 | 5591 | | |
| |||
0 commit comments