1
0
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:
jan
2005-12-16 07:21:33 +00:00
parent c088f6d38c
commit c8b22058f7
5 changed files with 134 additions and 21 deletions

View File

@@ -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);
}