diff options
Diffstat (limited to 'util/log.h')
-rw-r--r-- | util/log.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -507,6 +507,12 @@ namespace mongo { int x = errno; cout << "Failed to write to logfile: " << errnoWithDescription(x) << ": " << out << endl; } + +#ifdef POSIX_FADV_DONTNEED + // This only applies to pages that have already been flushed + RARELY posix_fadvise(fileno(logfile), 0, 0, POSIX_FADV_DONTNEED); +#endif + } _init(); } |