diff options
Diffstat (limited to 'src/backend/utils/init/postinit.c')
-rw-r--r-- | src/backend/utils/init/postinit.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 2a57a7acd74..47926b146f5 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.92 2001/09/27 16:29:12 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.93 2001/09/29 04:02:25 tgl Exp $ * * *------------------------------------------------------------------------- @@ -401,11 +401,12 @@ ShutdownPostgres(void) * since that just raises the odds of failure --- but there's some * stuff we need to do. * - * Release any spinlocks or buffer context locks we might be holding. + * Release any LW locks and buffer context locks we might be holding. * This is a kluge to improve the odds that we won't get into a - * self-made stuck-spinlock scenario while trying to shut down. + * self-made stuck-lock scenario while trying to shut down. */ - ProcReleaseSpins(NULL); + LWLockReleaseAll(); + AbortBufferIO(); UnlockBuffers(); /* |