Skip to content

Commit 3bb592b

Browse files
committed
Fix position of WalSndWakeupRequest call.
This avoids discriminating against wal_sync_method = open_sync or open_datasync. Fujii Masao, reviewed by Andres Freund
1 parent 2b44306 commit 3bb592b

File tree

1 file changed

+4
-3
lines changed
  • src/backend/access/transam

1 file changed

+4
-3
lines changed

src/backend/access/transam/xlog.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,10 +1867,11 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible, bool xlog_switch)
18671867
}
18681868

18691869
issue_xlog_fsync(openLogFile, openLogSegNo);
1870-
1871-
/* signal that we need to wakeup walsenders later */
1872-
WalSndWakeupRequest();
18731870
}
1871+
1872+
/* signal that we need to wakeup walsenders later */
1873+
WalSndWakeupRequest();
1874+
18741875
LogwrtResult.Flush = LogwrtResult.Write;
18751876
}
18761877

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy