Commit feb8296
committed
MDEV-14401: Stored procedure that declares a handler that catches ER_LOCK_DEADLOCK error causes thd->is_error() assertion
This was missing bug fix from MySQL wsrep i.e. Galera. Problem was that if stored procedure declares a handler that catches deadlock error, then the error may have been cleared in method sp_rcontext::handle_sql_condition(). Use wsrep_conflict_state correctly to determine is the error already sent to client. Add test case for both this bug and MDEV-12837: WSREP: BF lock wait long. Test requires both fixes to pass.1 parent e66bb57 commit feb8296
File tree
3 files changed
+91
-12
lines changed- mysql-test/suite/galera
- r
- t
- sql
3 files changed
+91
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5041 | 5041 | | |
5042 | 5042 | | |
5043 | 5043 | | |
5044 | | - | |
5045 | | - | |
5046 | | - | |
5047 | | - | |
| 5044 | + | |
| 5045 | + | |
| 5046 | + | |
| 5047 | + | |
| 5048 | + | |
| 5049 | + | |
| 5050 | + | |
| 5051 | + | |
| 5052 | + | |
| 5053 | + | |
| 5054 | + | |
5048 | 5055 | | |
5049 | | - | |
5050 | 5056 | | |
5051 | | - | |
5052 | 5057 | | |
5053 | 5058 | | |
5054 | 5059 | | |
| |||
5085 | 5090 | | |
5086 | 5091 | | |
5087 | 5092 | | |
5088 | | - | |
5089 | | - | |
5090 | | - | |
| 5093 | + | |
| 5094 | + | |
| 5095 | + | |
| 5096 | + | |
| 5097 | + | |
| 5098 | + | |
| 5099 | + | |
| 5100 | + | |
5091 | 5101 | | |
5092 | | - | |
5093 | 5102 | | |
5094 | | - | |
5095 | 5103 | | |
5096 | 5104 | | |
5097 | 5105 | | |
| |||
5720 | 5728 | | |
5721 | 5729 | | |
5722 | 5730 | | |
5723 | | - | |
| 5731 | + | |
5724 | 5732 | | |
| 5733 | + | |
5725 | 5734 | | |
5726 | 5735 | | |
5727 | 5736 | | |
| |||
0 commit comments