Please sign in to comment.
Bug#15851528 DUPLICATE KEY ERROR ON AUTO-INC PK WITH MIXED AUTO_INCRE…
…MENT_INCREMENT CLIENTS Problem: Clients running different values for auto_increment_increment and doing concurrent inserts leads to "Duplicate key error" in one of them. Analysis: When auto_increment_increment value is reduced in a session, InnoDB uses last auto_increment_increment value to recalculate the autoinc value. In case, some other session has inserted a value with different auto_increment_increment, InnoDB recalculate autoinc values based on current session previous auto_increment_increment instead of considering the auto_increment_increment used for last insert across all session Fix: revert 7acdf29 a.k.a. 7c12a9e as it causing the bug. Reviewed By: Bin <firstname.lastname@example.org> Kevin <email@example.com> RB#21777 Note: In MariaDB Server, earlier changes in ae5bc05 for MDEV-533 require that the original test in mysql/mysql-server@1ccd472 be adjusted for MariaDB. Also, ef47b62 (MDEV-8827) had to be reverted after the upstream fix had been backported.
- Loading branch information...
Showing with 194 additions and 34 deletions.