1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-09 06:21:09 +03:00

Need to reset local buffer pin counts, not only shared buffer pins,

before we attempt any file deletions in ShutdownPostgres.  Per Tatsuo.
This commit is contained in:
Tom Lane
2005-03-18 16:16:09 +00:00
parent 1f418555cf
commit 88164799ce
3 changed files with 19 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.142 2005/03/18 05:24:13 tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.143 2005/03/18 16:16:09 tgl Exp $
*
*
*-------------------------------------------------------------------------
@@ -515,6 +515,7 @@ ShutdownPostgres(int code, Datum arg)
*/
LWLockReleaseAll();
AtProcExit_Buffers();
AtProcExit_LocalBuffers();
/*
* In case a transaction is open, delete any files it created. This