• Daniele Sciascia's avatar
    refs codership/mysql-wsrep#184 · 1d216768
    Daniele Sciascia authored
    Fixes a deadlock between applier and its victim transaction.
    The deadlock would manifest when a BF victim was waiting for some lock
    and was signaled to rollback, and the same time its wait
    timeout expired. In such cases the victim would return from
    lock_wait_suspend_thread() with error DB_LOCK_WAIT_TIMEOUT, as opposed to
    DB_DEADLOCK. As a result only the last statement of the victim would rollback,
    and eventually it would deadlock with the applier.
    1d216768
lock0wait.cc 14.9 KB