Permalink
Browse files

SERVER-6414 - windows compile part 2

  • Loading branch information...
1 parent 87c31eb commit ea06d5d59af1b41f2f9d40a74dc77ea98aa4ecd2 @erh erh committed Jul 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 db/extsort.cpp
View
@@ -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

0 comments on commit ea06d5d

Please sign in to comment.