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

Commite9a3833

Browse files
committed
Adjust pg_fsync_writethrough so that it will set errno when failing
on a platform that doesn't support this operation. The former codingwould allow an unrelated errno to be reported, which would be quitemisleading. Not sure if this has anything to do with the currentbuildfarm failures, but it's certainly bogus as-is.
1 parent3229db2 commite9a3833

File tree

1 file changed

+2
-1
lines changed
  • src/backend/storage/file

1 file changed

+2
-1
lines changed

‎src/backend/storage/file/fd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.154 2010/02/15 00:50:57 stark Exp $
10+
* $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.155 2010/02/22 15:26:14 tgl Exp $
1111
*
1212
* NOTES:
1313
*
@@ -292,6 +292,7 @@ pg_fsync_writethrough(int fd)
292292
#elif defined(F_FULLFSYNC)
293293
return (fcntl(fd,F_FULLFSYNC,0)==-1) ?-1 :0;
294294
#else
295+
errno=ENOSYS;
295296
return-1;
296297
#endif
297298
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp