mirror of
https://github.com/MariaDB/server.git
synced 2025-11-09 11:41:36 +03:00
Caused by optimization done in2e2b2a0469. Cannot use lookup_handler in default branch of locate_dup_record() as InnoDB update depends on positioned record and update is done in table main handler. The patch reverts some non-pure changes done by2e2b2a0469to original logic from72429cad. There was no long_unique_table condition to init search on table->file, so we get into default branch with long unique and table->file search uninitialized. ha_rnd_init_with_error() on demand for HA_DUPLICATE_POS branch was original logic as well. More info:2e2b2a0469reverts5e345281e3, but it seems to be OK as MDEV-3888 test case passes. mysql-5.6.13 has the original code with HA_WHOLE_KEY as well.
184 KiB
184 KiB