Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite9f5a06

Browse files
committed
Don't use O_SYNC or similar when opening signal file to fsync it.
No need to use get_sync_bit() when we're calling pg_fsync() on the file.We're not writing to the files, so it doesn't make any difference inpractice, but seems less surprising this way.Reviewed-by: Andres FreundDiscussion:https://www.postgresql.org/message-id/b3b71061-4919-e882-4857-27e370ab134a%40iki.fi
1 parent0b8ea70 commite9f5a06

File tree

1 file changed

+2
-2
lines changed
  • src/backend/access/transam

1 file changed

+2
-2
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5484,7 +5484,7 @@ readRecoverySignalFile(void)
54845484
{
54855485
intfd;
54865486

5487-
fd=BasicOpenFilePerm(STANDBY_SIGNAL_FILE,O_RDWR |PG_BINARY |get_sync_bit(sync_method),
5487+
fd=BasicOpenFilePerm(STANDBY_SIGNAL_FILE,O_RDWR |PG_BINARY,
54885488
S_IRUSR |S_IWUSR);
54895489
if (fd >=0)
54905490
{
@@ -5497,7 +5497,7 @@ readRecoverySignalFile(void)
54975497
{
54985498
intfd;
54995499

5500-
fd=BasicOpenFilePerm(RECOVERY_SIGNAL_FILE,O_RDWR |PG_BINARY |get_sync_bit(sync_method),
5500+
fd=BasicOpenFilePerm(RECOVERY_SIGNAL_FILE,O_RDWR |PG_BINARY,
55015501
S_IRUSR |S_IWUSR);
55025502
if (fd >=0)
55035503
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp