diff options
author | Robert Haas <rhaas@postgresql.org> | 2012-07-02 14:43:10 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2012-07-02 14:44:10 -0400 |
commit | 3bb592bb20d02093d6488a57c7c4ee94803ddc9a (patch) | |
tree | 4b91579a14fc758cfed190b3d443aa57111a565b /src | |
parent | 2b44306315cf84479f735b12f78499616172dbb9 (diff) | |
download | postgresql-3bb592bb20d02093d6488a57c7c4ee94803ddc9a.tar.gz postgresql-3bb592bb20d02093d6488a57c7c4ee94803ddc9a.zip |
Fix position of WalSndWakeupRequest call.
This avoids discriminating against wal_sync_method = open_sync or
open_datasync.
Fujii Masao, reviewed by Andres Freund
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/transam/xlog.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |