diff options
Diffstat (limited to 'src/mongo/db/extsort.cpp')
-rw-r--r-- | src/mongo/db/extsort.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/extsort.cpp b/src/mongo/db/extsort.cpp index cc0637fb216..195b01851a8 100644 --- a/src/mongo/db/extsort.cpp +++ b/src/mongo/db/extsort.cpp @@ -270,6 +270,9 @@ namespace mongo { #ifdef _WIN32 _file = ::_open( file.c_str(), _O_BINARY | _O_RDWR | _O_CREAT , _S_IREAD | _S_IWRITE ); #else +#ifndef O_NOATIME +#define O_NOATIME 0 +#endif _file = ::open( file.c_str(), O_CREAT | O_RDWR | O_NOATIME , S_IRUSR | S_IWUSR ); #endif massert( 16392, |