• unknown's avatar
    MDEV-4506: Parallel replication: error handling. · 2842f6b5
    unknown authored
    Add an error code to the wait_for_commit facility.
    
    Now, when a transaction fails, it can signal the error to
    any subsequent transaction that is waiting for it to commit.
    The waiting transactions then receive the error code back from
    wait_for_prior_commit() and can handle the error appropriately.
    
    Also fix one race that could cause crash if @@slave_parallel_threads
    were changed several times quickly in succession.
    2842f6b5
log.cc 276 KB