summaryrefslogtreecommitdiff
path: root/mysys/thr_mutex.c
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2009-02-19 11:01:25 +0200
committerMichael Widenius <monty@askmonty.org>2009-02-19 11:01:25 +0200
commit945fa0d913a65c447306e945c44f50828903445b (patch)
tree5178630451a60c8da965c19e0c339eb4f629de2f /mysys/thr_mutex.c
parent8526274c21ce0fd7eedac5275cb210cd2b048dc5 (diff)
parent6a1bc662d67cdb7716480654ddd63d504508b4fa (diff)
downloadmariadb-git-945fa0d913a65c447306e945c44f50828903445b.tar.gz
Merge with mysql-maria tree
mysql-test/t/variables.test: Reset delay_key_write, otherwise maria.maria test may fail sql/set_var.cc: Reset ha_open_options if one resets the delay_key_write variable. Before there was no way to reset it without restarting mysqld, which caused some tests to fail
Diffstat (limited to 'mysys/thr_mutex.c')
-rw-r--r--mysys/thr_mutex.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysys/thr_mutex.c b/mysys/thr_mutex.c
index cc6bdab2522..80f21e53473 100644
--- a/mysys/thr_mutex.c
+++ b/mysys/thr_mutex.c
@@ -807,15 +807,23 @@ static void print_deadlock_warning(safe_mutex_t *new_mutex,
fprintf(stderr, "safe_mutex: Found wrong usage of mutex "
"'%s' and '%s'\n",
parent_mutex->name, new_mutex->name);
+ DBUG_PRINT("info", ("safe_mutex: Found wrong usage of mutex "
+ "'%s' and '%s'",
+ parent_mutex->name, new_mutex->name));
fprintf(stderr, "Mutex currently locked (in reverse order):\n");
+ DBUG_PRINT("info", ("Mutex currently locked (in reverse order):"));
fprintf(stderr, "%-32.32s %s line %u\n", new_mutex->name, new_mutex->file,
new_mutex->line);
+ DBUG_PRINT("info", ("%-32.32s %s line %u\n", new_mutex->name,
+ new_mutex->file, new_mutex->line));
for (mutex_root= *my_thread_var_mutex_in_use() ;
mutex_root;
mutex_root= mutex_root->next)
{
fprintf(stderr, "%-32.32s %s line %u\n", mutex_root->name,
mutex_root->file, mutex_root->line);
+ DBUG_PRINT("info", ("%-32.32s %s line %u", mutex_root->name,
+ mutex_root->file, mutex_root->line));
}
fflush(stderr);
DBUG_VOID_RETURN;