Skip to content

Commit 40bc06f

Browse files
committed
Test for POSIX_FADV_DONTNEED to use posix_fadvise().
1 parent 91fc80d commit 40bc06f

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+
#ifdef POSIX_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)
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