mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Port r103 from braches/5.0 to trunk.
Fixed a bug on unlock_row. In a unlock_row we may unlock only the latest lock granted to this transaction to the row.
This commit is contained in:
@@ -1486,11 +1486,7 @@ row_unlock_for_mysql(
|
||||
|
||||
rec = btr_pcur_get_rec(pcur);
|
||||
|
||||
mutex_enter(&kernel_mutex);
|
||||
|
||||
lock_rec_reset_and_release_wait(rec);
|
||||
|
||||
mutex_exit(&kernel_mutex);
|
||||
lock_rec_unlock(trx, rec, prebuilt->select_lock_type);
|
||||
|
||||
mtr_commit(&mtr);
|
||||
|
||||
@@ -1520,11 +1516,7 @@ row_unlock_for_mysql(
|
||||
|
||||
rec = btr_pcur_get_rec(clust_pcur);
|
||||
|
||||
mutex_enter(&kernel_mutex);
|
||||
|
||||
lock_rec_reset_and_release_wait(rec);
|
||||
|
||||
mutex_exit(&kernel_mutex);
|
||||
lock_rec_unlock(trx, rec, prebuilt->select_lock_type);
|
||||
|
||||
mtr_commit(&mtr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user