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

Commit40bc06f

Browse files
committed
Test for POSIX_FADV_DONTNEED to use posix_fadvise().
1 parent91fc80d commit40bc06f

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
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.238 2006/06/15 19:15:00 momjian Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.239 2006/06/16 04:11:48 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -2147,7 +2147,7 @@ XLogFileClose(void)
21472147
{
21482148
Assert(openLogFile >=0);
21492149

2150-
#ifdef_POSIX_ADVISORY_INFO
2150+
#ifdefPOSIX_FADV_DONTNEED
21512151
/*
21522152
* WAL caches will not be accessed in the future, so we advise OS to
21532153
* free them. But we will not do so if WAL archiving is active,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp