• unknown's avatar
    Bug#30998 Drop View breaks replication if view does not exist · 26946f31
    unknown authored
    When executing drop view statement on the master, the statement is not written into bin-log if any error occurs, this could cause master slave inconsistence if any view has been dropped. 
    
    If some error occured and no view has been dropped, don't bin-log the statement, if at least one view has been dropped the query is bin-logged possible with an error.
    
    
    sql/sql_view.cc:
      If at least one view has been dropped the query is bin-logged possible with an error.
    mysql-test/suite/rpl/r/rpl_drop_view.result:
      Add test result for bug#30998
    mysql-test/suite/rpl/t/rpl_drop_view.test:
      Add test case for bug#30998
    26946f31
rpl_drop_view.test 690 Bytes