diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 7deb9013480..aff6136f9a8 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -1867,10 +1867,11 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible, bool xlog_switch) } issue_xlog_fsync(openLogFile, openLogSegNo); - - /* signal that we need to wakeup walsenders later */ - WalSndWakeupRequest(); } + + /* signal that we need to wakeup walsenders later */ + WalSndWakeupRequest(); + LogwrtResult.Flush = LogwrtResult.Write; }