mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Fix test case for innodb-lock
mysql-test/r/innodb-lock.result: Fix test case (old one didn't test things correctly) mysql-test/t/innodb-lock.test: Fix test case (old one didn't test things correctly) mysys/thr_lock.c: More debugging information sql/mysqld.cc: Enable innodb_table_locks as default, as otherwise there is a possibility for deadlocks sql/sql_base.cc: More debug information
This commit is contained in:
parent
95f0e39a38
commit
ec8779e95a
6 changed files with 62 additions and 32 deletions
|
|
@ -552,8 +552,14 @@ int thr_lock(THR_LOCK_DATA *data,enum thr_lock_type lock_type)
|
|||
!lock->write_wait.data &&
|
||||
lock->write.data->type == TL_WRITE_ALLOW_WRITE))
|
||||
{
|
||||
/* We have already got a write lock or all locks are
|
||||
TL_WRITE_ALLOW_WRITE */
|
||||
/*
|
||||
We have already got a write lock or all locks are
|
||||
TL_WRITE_ALLOW_WRITE
|
||||
*/
|
||||
DBUG_PRINT("info", ("write_wait.data: 0x%lx old_type: %d",
|
||||
(ulong) lock->write_wait.data,
|
||||
lock->write.data->type));
|
||||
|
||||
(*lock->write.last)=data; /* Add to running fifo */
|
||||
data->prev=lock->write.last;
|
||||
lock->write.last= &data->next;
|
||||
|
|
@ -568,6 +574,8 @@ int thr_lock(THR_LOCK_DATA *data,enum thr_lock_type lock_type)
|
|||
}
|
||||
else
|
||||
{
|
||||
DBUG_PRINT("info", ("write_wait.data: 0x%lx",
|
||||
(ulong) lock->write_wait.data));
|
||||
if (!lock->write_wait.data)
|
||||
{ /* no scheduled write locks */
|
||||
if (lock_type == TL_WRITE_CONCURRENT_INSERT &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue