mirror of https://github.com/postgres/postgres
Further tweak for comment in CheckDeadLock(), per Tom.
This commit is contained in:
parent
da80a4b97e
commit
8374246054
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.200 2008/06/09 06:55:34 neilc Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.201 2008/06/09 18:23:05 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -1171,9 +1171,9 @@ CheckDeadLock(void)
|
|||
/*
|
||||
* Check to see if we've been awoken by anyone in the interim.
|
||||
*
|
||||
* If we can return and resume our transaction -- happy day. Before we
|
||||
* are awoken the process releasing the lock grants it to us so we know
|
||||
* that we don't have to wait anymore.
|
||||
* If we have, we can return and resume our transaction -- happy day.
|
||||
* Before we are awoken the process releasing the lock grants it to us
|
||||
* so we know that we don't have to wait anymore.
|
||||
*
|
||||
* We check by looking to see if we've been unlinked from the wait queue.
|
||||
* This is quicker than checking our semaphore's state, since no kernel
|
||||
|
|
Loading…
Reference in New Issue