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

Commitda6bb58

Browse files
committed
Revert "Wake WALSender to reduce data loss at failover for async commit."
This reverts commit090e8a9.Since WalSndWakeup does not exist in 9.0, it's clear that this patchwasn't even compiled in this branch. Perhaps some variant of it isappropriate in 9.0, but for the moment I'm just going to un-breakthe buildfarm.
1 parent090e8a9 commitda6bb58

File tree

1 file changed

+0
-9
lines changed
  • src/backend/access/transam

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,7 +2115,6 @@ XLogBackgroundFlush(void)
21152115
{
21162116
XLogRecPtrWriteRqstPtr;
21172117
boolflexible= true;
2118-
boolwrote_something= false;
21192118

21202119
/* XLOG doesn't need flushing during recovery */
21212120
if (RecoveryInProgress())
@@ -2184,18 +2183,10 @@ XLogBackgroundFlush(void)
21842183
WriteRqst.Write=WriteRqstPtr;
21852184
WriteRqst.Flush=WriteRqstPtr;
21862185
XLogWrite(WriteRqst,flexible, false);
2187-
wrote_something= true;
21882186
}
21892187
LWLockRelease(WALWriteLock);
21902188

21912189
END_CRIT_SECTION();
2192-
2193-
/*
2194-
* If we wrote something then we have something to send to standbys also,
2195-
* otherwise the replication delay become around 7s with just async commit.
2196-
*/
2197-
if (wrote_something)
2198-
WalSndWakeup();
21992190
}
22002191

22012192
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp