• Luis Soares's avatar
    BUG#40611: MySQL cannot make a binary log after sequential number · 1d00d426
    Luis Soares authored
    beyond unsigned long.
    BUG#44779: binlog.binlog_max_extension may be causing failure on 
    next test in PB
                
    NOTE1: this is the backport to next-mr.
    NOTE2: already includes patch for BUG#44779.
                
    Binlog file extensions would turn into negative numbers once the
    variable used to hold the value reached maximum for signed
    long. Consequently, incrementing value to the next (negative) number
    would lead to .000000 extension, causing the server to fail.
                            
    This patch addresses this issue by not allowing negative extensions
    and by returning an error on find_uniq_filename, when the limit is
    reached. Additionally, warnings are printed to the error log when the
    limit is approaching. FLUSH LOGS will also report warnings to the
    user, if the extension number has reached the limit. The limit has been
    set to 0x7FFFFFFF as the maximum.
    1d00d426
binlog_max_extension.result 341 Bytes