]> granicus.if.org Git - postgresql/commitdiff
Whoops, forgot to do ProcLockWakeup() after deadlock checker
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 25 Jan 2001 03:45:50 +0000 (03:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 25 Jan 2001 03:45:50 +0000 (03:45 +0000)
rearranges wait queues.

src/backend/storage/lmgr/deadlock.c

index aae635a6ccce81367c48dbc55a40f125f34b1fb7..31db44e74b007687fc3084bf67de2df5f8838019 100644 (file)
@@ -12,7 +12,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/storage/lmgr/deadlock.c,v 1.1 2001/01/25 03:31:16 tgl Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/storage/lmgr/deadlock.c,v 1.2 2001/01/25 03:45:50 tgl Exp $
  *
  *     Interface:
  *
@@ -207,6 +207,9 @@ DeadLockCheck(PROC *proc)
 #ifdef DEBUG_DEADLOCK
                PrintLockQueue(lock, "rearranged to:");
 #endif
+
+               /* See if any waiters for the lock can be woken up now */
+               ProcLockWakeup(GetLocksMethodTable(lock), lock);
        }
        return false;
 }