summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2012-05-03 09:56:24 -0400
committerAndy Schwerin <schwerin@10gen.com>2012-05-03 09:56:24 -0400
commitdc2f8cd3df44ea33f9813aadb27804e084abea11 (patch)
treebb4ef921358f4ed2daf5219ff0b0859cd1e3e43f
parent98c748b29587908d2566fa03f81bd3d3186748bf (diff)
downloadmongo-dc2f8cd3df44ea33f9813aadb27804e084abea11.tar.gz
SERVER-5754: Fix erroneous assertion in db/pdfile.cpp.
-rw-r--r--db/pdfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/pdfile.cpp b/db/pdfile.cpp
index ead0b2f3ebe..60914d9b904 100644
--- a/db/pdfile.cpp
+++ b/db/pdfile.cpp
@@ -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;