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

Commit2de48a8

Browse files
committed
Cleanup and code review for the patch that made bgwriter active during
archive recovery. Invent a separate state variable and inquiry functionfor XLogInsertAllowed() to clarify some tests and make the management ofwriting the end-of-recovery checkpoint less klugy. Fix several placesthat were incorrectly testing InRecovery when they should be looking atRecoveryInProgress or XLogInsertAllowed (because they will now be executedin the bgwriter not startup process). Clarify handling of bad LSNs passedto XLogFlush during recovery. Use a spinlock for setting/testingSharedRecoveryInProgress. Improve quite a lot of comments.Heikki and Tom
1 parenta6667d9 commit2de48a8

File tree

6 files changed

+244
-131
lines changed

6 files changed

+244
-131
lines changed

‎src/backend/access/transam/multixact.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
4343
* Portions Copyright (c) 1994, Regents of the University of California
4444
*
45-
* $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.30 2009/01/20 18:59:37 heikki Exp $
45+
* $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.31 2009/06/26 20:29:04 tgl Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -1543,7 +1543,7 @@ CheckPointMultiXact(void)
15431543
* SimpleLruTruncate would get confused. It seems best not to risk
15441544
* removing any data during recovery anyway, so don't truncate.
15451545
*/
1546-
if (!InRecovery)
1546+
if (!RecoveryInProgress())
15471547
TruncateMultiXact();
15481548

15491549
TRACE_POSTGRESQL_MULTIXACT_CHECKPOINT_DONE(true);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp