mirror of
https://github.com/postgres/postgres.git
synced 2026-02-25 10:50:50 -05:00
Fix position of WalSndWakeupRequest call.
This avoids discriminating against wal_sync_method = open_sync or open_datasync. Fujii Masao, reviewed by Andres Freund
This commit is contained in:
parent
2b44306315
commit
3bb592bb20
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue