• Nikita Malyavin's avatar
    Cleanup: make slave_exec_mode of its enum type and pack Log_event better · c373e6c3
    Nikita Malyavin authored
    Pack these fields together:
    event_owns_temp_buf
    cache_type
    slave_exec_mode
    checksum_alg
    
    Make them bitfields to fit a single 2-byte hole.
    
    This saves 24 bytes per event.
    
    SLAVE_EXEC_MODE_LAST_BIT is rewritten as
    
    > SLAVE_EXEC_MODE_LAST= SLAVE_EXEC_MODE_IDEMPOTENT
    
    to avoid a false-positive -Wbitfield-enum-conversion warning:
    Bit-field 'slave_exec_mode' is not wide enough to store all enumerators of
    'enum_slave_exec_mode'.
    c373e6c3
log_event.h 168 KB