Commit 360e06f
Astha Pareek
BUG#17920923 - BACKPORT PATCH FOR BUG#14511533 INTO 5.6
Problem:
Server crash was observed when code first checked if
semisync was enabled without lock, if so it takes the
lock and checks again. If semisync gets disabled
in-between the first and second check, an assert
incorrectly referenced a null pointer for active
transaction which leads to the crash.
Solution:
The assert is relocated onto a position where
active_tranxs buffer is valid.1 parent 74901f0 commit 360e06f
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
623 | 627 | | |
624 | 628 | | |
625 | 629 | | |
626 | | - | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
627 | 635 | | |
628 | 636 | | |
629 | 637 | | |
| |||
762 | 770 | | |
763 | 771 | | |
764 | 772 | | |
765 | | - | |
766 | 773 | | |
767 | 774 | | |
768 | 775 | | |
769 | 776 | | |
770 | 777 | | |
771 | 778 | | |
772 | 779 | | |
773 | | - | |
| 780 | + | |
774 | 781 | | |
775 | 782 | | |
776 | 783 | | |
| |||
0 commit comments