1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-6769 DROP TRIGGER IF NOT EXIST binlogged on master but not on slave

don't return from DROP TRIGGER IF NOT EXISTS on the slave side
early when the trigger couldn't be read
This commit is contained in:
Sergei Golubchik
2015-02-21 10:43:27 +01:00
parent b739103f12
commit 0ba168020e
3 changed files with 32 additions and 4 deletions

View File

@ -2283,11 +2283,15 @@ mysql_execute_command(THD *thd)
according to slave filtering rules.
Returning success without producing any errors in this case.
*/
DBUG_RETURN(0);
if (!thd->lex->check_exists)
DBUG_RETURN(0);
/*
DROP TRIGGER IF NOT EXISTS will return without an error later
after possibly writing the query to a binlog
*/
}
// force searching in slave.cc:tables_ok()
all_tables->updating= 1;
else // force searching in slave.cc:tables_ok()
all_tables->updating= 1;
}
/*