|
We can ignore this fix. In MariaDB, we are not updating the age of the transaction if deadlock is involved.
In mariaDB 10.1 code is like the following:
// Move it only when it does not cause a deadlock.
|
if (err != DB_DEADLOCK
|
&& innodb_lock_schedule_algorithm
|
== INNODB_LOCK_SCHEDULE_ALGORITHM_VATS
|
&& !thd_is_replication_slave_thread(lock->trx->mysql_thd)) {
|
space = buf_block_get_space(block);
|
page_no = buf_block_get_page_no(block);
|
HASH_DELETE(lock_t, hash, lock_sys->rec_hash,
|
lock_rec_fold(space, page_no), lock);
|
dberr_t res = lock_rec_insert_by_trx_age(lock);
|
if (res != DB_SUCCESS) {
|
return res;
|
}
|
}
|
But their patch checks the condition whether the transaction is a deadlock victim. So we can close this issue.
|