Permalink
Browse files

SERVER-5754: Fix erroneous assertion in db/pdfile.cpp.

  • Loading branch information...
1 parent 98c748b commit dc2f8cd3df44ea33f9813aadb27804e084abea11 @andy10gen andy10gen committed May 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/pdfile.cpp
View
@@ -434,7 +434,7 @@ namespace mongo {
}
Extent* MongoDataFile::createExtent(const char *ns, int approxSize, bool newCapped, int loops) {
- assert( approxSize < Extent::maxSize() );
+ assert( approxSize <= Extent::maxSize() );
{
// make sizes align with VM page size
int newSize = (approxSize + 0xfff) & 0xfffff000;

0 comments on commit dc2f8cd

Please sign in to comment.