summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Erf <kyle.erf@10gen.com>2013-08-27 15:54:10 -0400
committerDan Pasette <dan@mongodb.com>2013-10-02 16:40:18 -0400
commitbd4653ca22ddeebd4bcdf074eb234a40843f8f3d (patch)
tree16adb2649b4bc473d0130d3e7dbf5cb7656fea77
parent6c0b71b3845dddb48a30c9ad63627cf0af8c2356 (diff)
downloadmongo-bd4653ca22ddeebd4bcdf074eb234a40843f8f3d.tar.gz
SERVER-9501: initial sync exception: 10083 Changed validation to allow explicit creation of size 0 collections. Should be backported to 2.4.X
Signed-off-by: Matt Kangas <matt.kangas@10gen.com>
-rw-r--r--src/mongo/db/pdfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pdfile.cpp b/src/mongo/db/pdfile.cpp
index 928b8560ced..4085dfd2b3f 100644
--- a/src/mongo/db/pdfile.cpp
+++ b/src/mongo/db/pdfile.cpp
@@ -267,7 +267,7 @@ namespace mongo {
BSONElement e = options.getField("size");
if ( e.isNumber() ) {
size = e.numberLong();
- uassert( 10083 , "create collection invalid size spec", size > 0 );
+ uassert( 10083 , "create collection invalid size spec", size >= 0 );
size += 0xff;
size &= 0xffffffffffffff00LL;