Bug #81500 | dead branch in search_key_in_table() | ||
---|---|---|---|
Submitted: | 19 May 2016 9:10 | Modified: | 30 Apr 2018 11:20 |
Reporter: | Andrei Elkin | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Row Based Replication ( RBR ) | Severity: | S3 (Non-critical) |
Version: | 5.7+ | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[19 May 2016 9:10]
Andrei Elkin
[30 Apr 2018 11:20]
Margaret Fisher
Posted by developer: Changelog entry added for MySQL 8.0.12 and 5.7.23: The slave_rows_search_algorithms system variable controls how rows are searched for matches when preparing batches of rows for row-based logging and replication. Specifying INDEX_SCAN as one of the search algorithms performs an index scan if an index is present. In the situation where a different primary key is used on the master and the slave, and a unique key is present on the slave, a bug in the code meant that the index scan was not being performed as it should be, and a slower table scan was being performed instead. The issue has now been corrected so that an index scan is used.