diff options
author | monty@mysql.com <> | 2004-10-20 16:04:28 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2004-10-20 16:04:28 +0300 |
commit | b32ffec8fdc9d05377e69c8b1abb92d562670324 (patch) | |
tree | 23e87e07794af4dd31668c4f6f75475638445d9c /mysys/thr_lock.c | |
parent | 9f8d47d81ac61492dae902cabaac30e07cc27cfc (diff) | |
download | mariadb-git-b32ffec8fdc9d05377e69c8b1abb92d562670324.tar.gz |
Fix test case for innodb-lock
Diffstat (limited to 'mysys/thr_lock.c')
-rw-r--r-- | mysys/thr_lock.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mysys/thr_lock.c b/mysys/thr_lock.c index d5236cb1ef9..935ed4ea282 100644 --- a/mysys/thr_lock.c +++ b/mysys/thr_lock.c @@ -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 && |