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

Commitebb6bae

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 nothave the problem but it seems a safe change anyway.
1 parentb60ddff commitebb6bae

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)

[8]ページ先頭

©2009-2025 Movatter.jp