mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Don't use row level logging on optimize or repair table.
(Fixes core dump in rpl_failed_optimize.test) Ensure we end active transcations if we do an admin command (like optimize, repair etc)
This commit is contained in:
@ -3264,10 +3264,11 @@ int handler::ha_external_lock(THD *thd, int lock_type)
|
||||
locking combined with row-based replication needs to be looked
|
||||
over. Ideally, no such special handling should be needed.
|
||||
*/
|
||||
switch (thd->lex->sql_command)
|
||||
{
|
||||
switch (thd->lex->sql_command) {
|
||||
case SQLCOM_TRUNCATE:
|
||||
case SQLCOM_ALTER_TABLE:
|
||||
case SQLCOM_OPTIMIZE:
|
||||
case SQLCOM_REPAIR:
|
||||
DBUG_RETURN(0);
|
||||
default:
|
||||
break;
|
||||
|
Reference in New Issue
Block a user