• unknown's avatar
    BUG#32407: Impossible to do point-in-time recovery from older binlog · 30c64089
    unknown authored
    Problem: it is unsafe to read base64-printed events without first
    reading the Format_description_log_event (FD).  Currently, mysqlbinlog
    cannot print the FD.
    
    As a side effect, another bug has also been fixed: When mysqlbinlog
    --start-position=X was specified, no ROLLBACK was printed. I changed
    this, so that ROLLBACK is always printed.
    
    This patch does several things:
    
     - Format_description_log_event (FD) now print themselves in base64
       format.
    
     - mysqlbinlog is now able to print FD events.  It has three modes:
        --base64-output=auto    Print row events in base64 output, and print
                                FD event.  The FD event is printed even if
                                it is outside the range specified with
                                --start-position, because it would not be
                                safe to read row events otherwise. This is
                                the default.
    
        --base64-output=always  Like --ba...
    30c64089
slave.h 8.27 KB