Skip to content

Commit ebb6bae

Browse files
committed
Cancel pending fsync requests during WAL replay of DROP DATABASE, per bug
report from David Darville. Back-patch as far as 8.1, which may or may not have the problem but it seems a safe change anyway.
1 parent b60ddff commit ebb6bae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/commands/dbcommands.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*
1515
* IDENTIFICATION
16-
* $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.193 2007/03/13 00:33:39 tgl Exp $
16+
* $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.194 2007/04/12 15:04:35 tgl Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -1439,6 +1439,9 @@ dbase_redo(XLogRecPtr lsn, XLogRecord *record)
14391439
/* Also, clean out any entries in the shared free space map */
14401440
FreeSpaceMapForgetDatabase(xlrec->db_id);
14411441

1442+
/* Also, clean out any fsync requests that might be pending in md.c */
1443+
ForgetDatabaseFsyncRequests(xlrec->db_id);
1444+
14421445
/* Clean out the xlog relcache too */
14431446
XLogDropDatabase(xlrec->db_id);
14441447

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy