mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.7' into 10.8
This commit is contained in:
@@ -4111,8 +4111,9 @@ int ha_partition::external_lock(THD *thd, int lock_type)
|
||||
These commands may be excluded because working history partition is needed
|
||||
only for versioned DML. */
|
||||
thd->lex->sql_command != SQLCOM_SELECT &&
|
||||
thd->lex->sql_command != SQLCOM_INSERT_SELECT)
|
||||
m_part_info->vers_set_hist_part(thd);
|
||||
thd->lex->sql_command != SQLCOM_INSERT_SELECT &&
|
||||
(error= m_part_info->vers_set_hist_part(thd)))
|
||||
goto err_handler;
|
||||
}
|
||||
DBUG_RETURN(0);
|
||||
|
||||
@@ -4249,7 +4250,7 @@ int ha_partition::start_stmt(THD *thd, thr_lock_type lock_type)
|
||||
i= bitmap_get_next_set(&m_part_info->lock_partitions, i))
|
||||
{
|
||||
if (unlikely((error= m_file[i]->start_stmt(thd, lock_type))))
|
||||
break;
|
||||
DBUG_RETURN(error);
|
||||
/* Add partition to be called in reset(). */
|
||||
bitmap_set_bit(&m_partitions_to_reset, i);
|
||||
}
|
||||
@@ -4261,7 +4262,7 @@ int ha_partition::start_stmt(THD *thd, thr_lock_type lock_type)
|
||||
// TODO: MDEV-20345 (see above)
|
||||
thd->lex->sql_command != SQLCOM_SELECT &&
|
||||
thd->lex->sql_command != SQLCOM_INSERT_SELECT)
|
||||
m_part_info->vers_set_hist_part(thd);
|
||||
error= m_part_info->vers_set_hist_part(thd);
|
||||
}
|
||||
DBUG_RETURN(error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user