From ea06d5d59af1b41f2f9d40a74dc77ea98aa4ecd2 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Wed, 11 Jul 2012 18:24:51 -0400 Subject: SERVER-6414 - windows compile part 2 --- db/extsort.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/extsort.cpp b/db/extsort.cpp index 7786b8b821e..bd04d40ba65 100644 --- a/db/extsort.cpp +++ b/db/extsort.cpp @@ -218,7 +218,7 @@ namespace mongo { BSONObjExternalSorter::FileIterator::FileIterator( string file ) { #ifdef _WIN32 - _file = _open( file.c_str(), _O_RDWR | _O_CREAT | O_NOATIME, _S_IREAD | _S_IWRITE ); + _file = _open( file.c_str(), _O_RDWR | _O_CREAT , _S_IREAD | _S_IWRITE ); #else _file = ::open( file.c_str(), O_CREAT | O_RDWR | O_NOATIME , S_IRUSR | S_IWUSR ); #endif @@ -238,7 +238,7 @@ namespace mongo { BSONObjExternalSorter::FileIterator::~FileIterator() { if ( _file >= 0 ) { #ifdef _WIN32 - fileClose( _file ); + _close( _file ); #else ::close( _file ); #endif -- cgit v1.2.1