• Michael Widenius's avatar
    MDEV-6668: Server crashes in check_view_single_update on concurrent DDL/DML... · b83f6925
    Michael Widenius authored
    MDEV-6668: Server crashes in check_view_single_update on concurrent DDL/DML flow with views and triggers
    
    Call mysql_derived_reinit() if we are reusing view.
    This is needed as during a previous error condition the view may not have been reset
    
    sql/sql_derived.cc:
      More DBUG_PRINT
      Always reset merged_for_insert (no reason to not do that)
    sql/sql_derived.h:
      Added prototype
    sql/sql_insert.cc:
      More DBUG_PRINT
      Added DBUG_ASSERT
    sql/sql_view.cc:
      Call mysql_derived_reinit() if we are reusing view.
      This is needed as during a previous error condition the view may not have been reset
    sql/table.cc:
      More DBUG_PRINT
    b83f6925
sql_view.cc 60.5 KB