Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8a58518

Browse files
author
Hiroshi Inoue
committed
Fix an Assert bug(was my fault) pointed out by Tom Lane.
1 parent8d04225 commit8a58518

File tree

1 file changed

+8
-3
lines changed
  • src/backend/storage/lmgr

1 file changed

+8
-3
lines changed

‎src/backend/storage/lmgr/proc.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.70 2000/02/24 04:36:01 inoue Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.71 2000/04/10 00:45:42 inoue Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -47,7 +47,7 @@
4747
*This is so that we can support more backends. (system-wide semaphore
4848
*sets run out pretty fast.) -ay 4/95
4949
*
50-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.70 2000/02/24 04:36:01 inoue Exp $
50+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.71 2000/04/10 00:45:42 inoue Exp $
5151
*/
5252
#include<sys/time.h>
5353
#include<unistd.h>
@@ -493,7 +493,12 @@ voidSetWaitingForLock(bool waiting)
493493
lockWaiting=waiting;
494494
if (lockWaiting)
495495
{
496-
Assert(MyProc->links.next!=INVALID_OFFSET);
496+
/* The lock was already released ? */
497+
if (MyProc->links.next==INVALID_OFFSET)
498+
{
499+
lockWaiting= false;
500+
return;
501+
}
497502
if (QueryCancel)/* cancel request pending */
498503
{
499504
if (GetOffWaitqueue(MyProc))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp