Skip to content

Commit da6bb58

Browse files
committed
Revert "Wake WALSender to reduce data loss at failover for async commit."
This reverts commit 090e8a9. Since WalSndWakeup does not exist in 9.0, it's clear that this patch wasn't even compiled in this branch. Perhaps some variant of it is appropriate in 9.0, but for the moment I'm just going to un-break the buildfarm.
1 parent 090e8a9 commit da6bb58

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
XLogRecPtr WriteRqstPtr;
21172117
bool flexible = true;
2118-
bool wrote_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)