diff options
-rw-r--r-- | db/extsort.cpp | 6 | ||||
-rw-r--r-- | db/extsort.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/db/extsort.cpp b/db/extsort.cpp index e0d4d0cf93c..0838b7ffb4e 100644 --- a/db/extsort.cpp +++ b/db/extsort.cpp @@ -241,10 +241,10 @@ namespace mongo { } - bool BSONObjExternalSorter::FileIterator::_read( char* buf, ssize_t count ) { - ssize_t total = 0; + bool BSONObjExternalSorter::FileIterator::_read( char* buf, long long count ) { + long long total = 0; while ( total < count ) { - ssize_t now = ::read( _file, buf, count ); + long long now = ::read( _file, buf, count ); if ( now < 0 ) { log() << "read failed for BSONObjExternalSorter " << errnoWithDescription() << endl; return false; diff --git a/db/extsort.h b/db/extsort.h index 04f9e5e6f85..8f67acd55fa 100644 --- a/db/extsort.h +++ b/db/extsort.h @@ -76,7 +76,7 @@ namespace mongo { bool more(); Data next(); private: - bool _read( char* buf, ssize_t count ); + bool _read( char* buf, long long count ); int _file; unsigned long long _length; |