diff options
Diffstat (limited to 'src/backend/storage/lmgr/proc.c')
-rw-r--r-- | src/backend/storage/lmgr/proc.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index ac04b5e8042..e50ed2f08fe 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.154 2004/09/29 15:15:55 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.155 2004/10/16 18:57:24 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -461,9 +461,7 @@ ProcKill(int code, Datum arg) * shutdown callback registered by the bufmgr ... but we must do this * *after* LWLockReleaseAll and *before* zapping MyProc. */ - AbortBufferIO(); - UnlockBuffers(); - AtEOXact_Buffers(false); + AtProcExit_Buffers(); /* Get off any wait queue I might be on */ LockWaitCancel(); @@ -509,9 +507,7 @@ DummyProcKill(int code, Datum arg) LWLockReleaseAll(); /* Release buffer locks and pins, too */ - AbortBufferIO(); - UnlockBuffers(); - AtEOXact_Buffers(false); + AtProcExit_Buffers(); /* I can't be on regular lock queues, so needn't check */ |