• Alfranio Correia's avatar
    BUG#55625 RBR breaks on failing 'CREATE TABLE' · 1feee134
    Alfranio Correia authored
    A CREATE...SELECT that fails is written to the binary log if a non-transactional
    statement is updated. If the logging format is ROW, the CREATE statement and the
    changes are written to the binary log as distinct events and by consequence the
    created table is not rolled back in the slave.
    
    In this patch, we opted to let the slave goes out of sync by not writting to the
    binary log the CREATE statement. We do this by simply reseting the binary log's
    cache.
    1feee134
log.h 20.1 KB