diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 64d7660b38b..3902c583134 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -2115,7 +2115,6 @@ XLogBackgroundFlush(void) { XLogRecPtr WriteRqstPtr; bool flexible = true; - bool wrote_something = false; /* XLOG doesn't need flushing during recovery */ if (RecoveryInProgress()) @@ -2184,18 +2183,10 @@ XLogBackgroundFlush(void) WriteRqst.Write = WriteRqstPtr; WriteRqst.Flush = WriteRqstPtr; XLogWrite(WriteRqst, flexible, false); - wrote_something = true; } LWLockRelease(WALWriteLock); END_CRIT_SECTION(); - - /* - * If we wrote something then we have something to send to standbys also, - * otherwise the replication delay become around 7s with just async commit. - */ - if (wrote_something) - WalSndWakeup(); } /*