0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

better error msg

This commit is contained in:
dwight 2009-02-01 15:38:02 -05:00
parent ae35a81525
commit f4bbbd253d

View File

@ -235,9 +235,8 @@ namespace mongo {
/* prev - previous extent for this namespace. null=this is the first one. */
Extent* MongoDataFile::newExtent(const char *ns, int approxSize, bool newCapped, int loops) {
assert( approxSize >= 0 && approxSize <= 0x7ff00000 );
assert( header ); // null if file open failed
massert( "bad new extent size", approxSize >= 0 && approxSize <= 0x7ff00000 );
massert( "header==0 on new extent: 32 bit mmap space exceeded?", header ); // null if file open failed
int ExtentSize = approxSize <= header->unusedLength ? approxSize : header->unusedLength;
DiskLoc loc;
if ( ExtentSize <= 0 ) {