• Mats Kindahl's avatar
    Bug #40360: Binlog related errors with binlog off · c3a5b596
    Mats Kindahl authored
          
    When statement-based replication is used, and the
    transaction isolation level is READ-COMMITTED or stricter,
    InnoDB will print an error because statement-based
    replication might lead to inconsistency between master
    and slave databases. However, when the binary log is not
    engaged, this is not an issue and an error should
    not be printed.
    
    This patch makes thd_binlog_format() return BINLOG_FORMAT_
    UNSPEC when the binary log is not engaged for the given
    thread.
    
    mysql-test/t/innodb_mysql.test:
      Adding test that no error message is printed from inside
      InnoDB when the binary log is turned off.
    c3a5b596
innodb_mysql.test 1.41 KB