• unknown's avatar
    Fix for BUG#9149 "OPTIMIZE TABLE statement on InnoDB table is logged twice in the binary log" · 30a82dfb
    unknown authored
    if we fall back to mysql_alter_table() (for InnoDB), don't do binlogging in mysql_alter_table(), as mysql_admin_table()
    is not supposed to do any binlogging (it is done by the caller).
    
    
    sql/sql_table.cc:
      When optimizing a table, if we fall back to mysql_alter_table()
      (for InnoDB), don't do binlogging in mysql_alter_table(), as mysql_admin_table()
      is not supposed to do any binlogging (it is done by the caller).
    30a82dfb
sql_table.cc 106 KB