diff options
author | pem@mysql.com <> | 2004-04-07 19:07:44 +0200 |
---|---|---|
committer | pem@mysql.com <> | 2004-04-07 19:07:44 +0200 |
commit | dfd59e296e2c267a21f1ea8b3b937e07730dad0d (patch) | |
tree | e5ac1517ff3dccc42352b7bac39ecd1c093d0ae6 /sql/sql_test.cc | |
parent | 1541f2e7949416d6e172ef6406ecf140d3b26659 (diff) | |
parent | 61fd95d168b51092b7ce3ff56b2c8c8ed1a49c0f (diff) | |
download | mariadb-git-dfd59e296e2c267a21f1ea8b3b937e07730dad0d.tar.gz |
Merge 4.1 -> 5.0.
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r-- | sql/sql_test.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc index cd493fcac30..f2909b93a2a 100644 --- a/sql/sql_test.cc +++ b/sql/sql_test.cc @@ -306,10 +306,14 @@ static void display_table_locks(void) THR_LOCK *lock=(THR_LOCK*) list->data; VOID(pthread_mutex_lock(&lock->mutex)); - push_locks_into_array(&saved_table_locks, lock->write.data, false, "Locked - write"); - push_locks_into_array(&saved_table_locks, lock->write_wait.data, true, "Waiting - write"); - push_locks_into_array(&saved_table_locks, lock->read.data, false, "Locked - read"); - push_locks_into_array(&saved_table_locks, lock->read_wait.data, true, "Waiting - read"); + push_locks_into_array(&saved_table_locks, lock->write.data, FALSE, + "Locked - write"); + push_locks_into_array(&saved_table_locks, lock->write_wait.data, TRUE, + "Waiting - write"); + push_locks_into_array(&saved_table_locks, lock->read.data, FALSE, + "Locked - read"); + push_locks_into_array(&saved_table_locks, lock->read_wait.data, TRUE, + "Waiting - read"); VOID(pthread_mutex_unlock(&lock->mutex)); } VOID(pthread_mutex_unlock(&THR_LOCK_lock)); |