summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-07-11 18:24:51 -0400
committerEliot Horowitz <eliot@10gen.com>2012-07-11 18:25:12 -0400
commitea06d5d59af1b41f2f9d40a74dc77ea98aa4ecd2 (patch)
treebee4575d132e2fffe6be491b18991867329e3dc9
parent87c31eb85c48d42e203cdcaf557c2e94c59d4e7d (diff)
downloadmongo-ea06d5d59af1b41f2f9d40a74dc77ea98aa4ecd2.tar.gz
SERVER-6414 - windows compile part 2
-rw-r--r--db/extsort.cpp4
1 files 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