1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug #14262 SP: DROP PROCEDURE|VIEW (maybe more) write to binlog too late (race cond)

- Rmove duplicate code to log a "DROP VIEW..", must be a merge miss 


sql/sql_view.cc:
  The query should only be logged to binlog once and that is if the drop didn't produce any errors
  Removing the duplicate as that must have been a merge error
This commit is contained in:
unknown
2006-10-26 18:34:24 +02:00
parent 67dcfc3e87
commit 69f3bb67f5

View File

@ -1418,13 +1418,6 @@ bool mysql_drop_view(THD *thd, TABLE_LIST *views, enum_drop_mode drop_mode)
sp_cache_invalidate();
}
if (mysql_bin_log.is_open())
{
thd->clear_error();
thd->binlog_query(THD::MYSQL_QUERY_TYPE,
thd->query, thd->query_length, FALSE, FALSE);
}
if (error)
{
VOID(pthread_mutex_unlock(&LOCK_open));