Fix the printout in for long semaphore waits to not

list a thread doing a wait_ex as an s-lock waiter.
This commit is contained in:
Inaam Rana 2010-05-27 12:31:00 -04:00
parent 1ecfadf83b
commit 063574c379

View file

@ -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;