mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.2 into 10.3
This commit is contained in:
@@ -13477,6 +13477,12 @@ Rows_log_event::write_row(rpl_group_info *rgi,
|
||||
if (table->file->ha_table_flags() & HA_DUPLICATE_POS)
|
||||
{
|
||||
DBUG_PRINT("info",("Locating offending record using rnd_pos()"));
|
||||
|
||||
if ((error= table->file->ha_rnd_init_with_error(0)))
|
||||
{
|
||||
DBUG_RETURN(error);
|
||||
}
|
||||
|
||||
error= table->file->ha_rnd_pos(table->record[1], table->file->dup_ref);
|
||||
if (unlikely(error))
|
||||
{
|
||||
@@ -13484,6 +13490,7 @@ Rows_log_event::write_row(rpl_group_info *rgi,
|
||||
table->file->print_error(error, MYF(0));
|
||||
DBUG_RETURN(error);
|
||||
}
|
||||
table->file->ha_rnd_end();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user