[MDEV-17614] INSERT on dup key update is replication unsafe Created: 2018-11-05 Updated: 2023-04-24 Resolved: 2019-08-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication, Storage Engine - InnoDB |
| Affects Version/s: | None |
| Fix Version/s: | 10.2.27, 10.1.42, 10.3.18, 10.4.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrei Elkin | Assignee: | Sachin Setiya (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Description |
|
Bug #58637 describes and fixes IODKU unsafety. That patch needs cherry-picking. |
| Comments |
| Comment by Marko Mäkelä [ 2018-11-06 ] | |||||||||||||||||||||
|
On a related note, an incorrect check for replication-unsafety was originally added in MySQL 5.1.20 in ha_innobase::table_flags() and in 5.1.21 moved to ha_innobase::external_lock(). A few notes:
| |||||||||||||||||||||
| Comment by Sachin Setiya (Inactive) [ 2019-06-04 ] | |||||||||||||||||||||
|
Changed the fix version to 10.1 , 10.0 is no longer supported | |||||||||||||||||||||
| Comment by Sachin Setiya (Inactive) [ 2019-06-08 ] | |||||||||||||||||||||
|
Test Case
| |||||||||||||||||||||
| Comment by Sachin Setiya (Inactive) [ 2019-06-12 ] | |||||||||||||||||||||
|
http://lists.askmonty.org/pipermail/commits/2019-June/013849.html | |||||||||||||||||||||
| Comment by Marko Mäkelä [ 2019-08-12 ] | |||||||||||||||||||||
|
In MariaDB Server 10.2 and later, this fix allows (and the test case requires) us to revise the In |