• unknown's avatar
    MDEV-5189: Incorrect parallel apply in parallel replication · 6a38b594
    unknown authored
    Two problems were fixed:
    
    1. When not in GTID mode (master_use_gtid=no), then we must not apply events
       in different domains in parallel (in non-GTID mode we are not capable of
       restarting at different points in different domains).
    
    2. When transactions B and C group commit together, but after and separate
       from A, we can apply B and C in parallel, but both B and C must not start
       until A has committed. Fix sub_id to be globally increasing (not just
       per-domain increasing) so that this wait (which is based on sub_id) can be
       done correctly.
    6a38b594
rpl_parallel.cc 25.9 KB