From 063574c379c1629d2129d77bceb3b42eca88d2bf Mon Sep 17 00:00:00 2001 From: Inaam Rana Date: Thu, 27 May 2010 12:31:00 -0400 Subject: [PATCH] Fix the printout in for long semaphore waits to not list a thread doing a wait_ex as an s-lock waiter. --- storage/innodb_plugin/sync/sync0arr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/storage/innodb_plugin/sync/sync0arr.c b/storage/innodb_plugin/sync/sync0arr.c index ed9e25bf2f2..3c825e2202b 100644 --- a/storage/innodb_plugin/sync/sync0arr.c +++ b/storage/innodb_plugin/sync/sync0arr.c @@ -498,7 +498,9 @@ sync_array_cell_print( || type == RW_LOCK_WAIT_EX || type == RW_LOCK_SHARED) { - fputs(type == RW_LOCK_EX ? "X-lock on" : "S-lock on", file); + fputs(type == RW_LOCK_EX ? "X-lock on" + : type == RW_LOCK_WAIT_EX ? "X-lock (wait_ex) on" + : "S-lock on", file); rwlock = cell->old_wait_rw_lock;