diff options
author | Antonin Kral <a.kral@bobek.cz> | 2012-03-01 13:43:25 +0100 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2012-03-01 13:43:25 +0100 |
commit | ba59b00736b5b8dc0f0bd46397575aaf0cd4d44f (patch) | |
tree | 6364cf3f69677758a13f7aa5f6f06a8ebb652d98 /util/log.h | |
parent | f0d9a01bccdaeb466c12c92057914bbfef59526c (diff) | |
download | mongodb-ba59b00736b5b8dc0f0bd46397575aaf0cd4d44f.tar.gz |
Imported Upstream version 2.0.3
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(); } |