• Mats Kindahl's avatar
    Bug #37221: SET AUTOCOMMIT=1 does not commit binary log · 8f35f7c9
    Mats Kindahl authored
    When setting AUTOCOMMIT=1 after starting a transaction, the binary log
    did not commit the outstanding transaction. The reason was that the binary
    log commit function saw the values of the new settings, deciding that there
    were nothing to commit.
    
    Fixed the problem by moving the implicit commit to before the thread option
    flags were changed, so that the binary log sees the old values of the flags
    instead of the values they will take after the statement.
    8f35f7c9
binlog_implicit_commit.test 1.66 KB