Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 211f5af

Browse files
committed
Whoops, forgot to do ProcLockWakeup() after deadlock checker
rearranges wait queues.
1 parent 8cb2c01 commit 211f5af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/storage/lmgr/deadlock.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
*
1414
* IDENTIFICATION
15-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/deadlock.c,v 1.1 2001/01/25 03:31:16 tgl Exp $
15+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/deadlock.c,v 1.2 2001/01/25 03:45:50 tgl Exp $
1616
*
1717
* Interface:
1818
*
@@ -207,6 +207,9 @@ DeadLockCheck(PROC *proc)
207207
#ifdef DEBUG_DEADLOCK
208208
PrintLockQueue(lock, "rearranged to:");
209209
#endif
210+
211+
/* See if any waiters for the lock can be woken up now */
212+
ProcLockWakeup(GetLocksMethodTable(lock), lock);
210213
}
211214
return false;
212215
}

0 commit comments

Comments
 (0)