• Marko Mäkelä's avatar
    Bug#22018745 CORRUPTION IN ONLINE TABLE REBUILD (ROW_FORMAT=REDUNDANT, INDEXED VIRTUAL COLUMN) · 6f5f7208
    Marko Mäkelä authored
    Apparently, WL#8149 QA did not cover the code changes made to
    online table rebuild (which was introduced in MySQL 5.6.8 by WL#6255)
    for ROW_FORMAT=REDUNDANT tables.
    
    row_log_table_low_redundant(): Log the new values of indexed virtual
    columns (ventry) only once.
    
    row_log_table_low(): Assert that if o_ventry is specified, the
    logged operation must not be ROW_T_INSERT, and ventry must be specified
    as well.
    
    row_log_table_low(): When computing the size of old_pk, pass v_entry=NULL to
    rec_get_converted_size_temp(), to be consistent with the subsequent call
    to rec_convert_dtuple_to_temp() for logging old_pk. Assert that
    old_pk never contains information on virtual columns, thus proving that this
    change is a no-op.
    
    RB: 13822
    Reviewed-by: default avatarJimmy Yang <jimmy.yang@oracle.com>
    6f5f7208
innodb_virtual_debug.test 7.14 KB