• Iaroslav Babanin's avatar
    MDEV-33935 fix deadlock counter · 5d49a2ad
    Iaroslav Babanin authored
    - The deadlock counter was moved from
    Deadlock::find_cycle into Deadlock::report, because
    the find_cycle method is called multiple times during deadlock
    detection flow, which means it shouldn't have such side effects.
    But report() can, which called only once for
    a victim transaction.
    - Also the deadlock_detect.test and *.result test case
    has been extended to handle the fix.
    5d49a2ad
deadlock_detect.test 2.29 KB