1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-12 08:01:43 +03:00

Port r375 from branches/5.0: Fix bug #15650 additional error InnoDB:

Error: unlock row could not find a 0 mode lock on the record.
This commit is contained in:
jan
2006-03-28 06:34:12 +00:00
parent 1bd22ab327
commit dd35291070

View File

@@ -3873,6 +3873,13 @@ ha_innobase::unlock_row(void)
ut_error;
}
/* Consistent read does not take any locks, thus there is
nothing to unlock. */
if (prebuilt->select_lock_type == LOCK_NONE) {
DBUG_VOID_RETURN;
}
switch (prebuilt->row_read_type) {
case ROW_READ_WITH_LOCKS:
if (!srv_locks_unsafe_for_binlog