• Brandon Nesterenko's avatar
    MDEV-30430: Enabling system versioning on tables without primary key breaks replication · 29fb0410
    Brandon Nesterenko authored
    When replicating MDL events for a table that uses system versioning
    without primary keys, ensure that for data sets with duplicate
    records, the updates to these records with duplicates are enacted on
    the correct row. That is, there was a bug (reported in MDEV-30430)
    such that the function to find the row to update would stop after
    finding the first matching record. However, in the absence of
    primary keys, the version of the record is needed to compare the row
    to ensure we are updating the correct one.
    
    The fix, therefore, updates the record comparison functionality to
    use system version columns when there are no primary keys on the
    table.
    
    Reviewed By:
    ============
    Andrei Elkin <andrei.elkin@mariadb.com>
    29fb0410
rpl.result 4.85 KB