mirror of
https://github.com/MariaDB/server.git
synced 2025-12-15 08:21:24 +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:
@@ -3873,6 +3873,13 @@ ha_innobase::unlock_row(void)
|
|||||||
ut_error;
|
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) {
|
switch (prebuilt->row_read_type) {
|
||||||
case ROW_READ_WITH_LOCKS:
|
case ROW_READ_WITH_LOCKS:
|
||||||
if (!srv_locks_unsafe_for_binlog
|
if (!srv_locks_unsafe_for_binlog
|
||||||
|
|||||||
Reference in New Issue
Block a user