Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Windows does not have ssize_t

  • Loading branch information...
commit a31879b251308a14b5414b6a5d3f9dae495b23ea 1 parent 6b24994
@milkie milkie authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 db/extsort.cpp
  2. +1 −1  db/extsort.h
View
6 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;
View
2  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;
Please sign in to comment.
Something went wrong with that request. Please try again.