diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-11-30 10:01:59 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-11-30 10:01:59 -0500 |
commit | aaf901fe6e4c53e170f1e8161a6cf20dee16e2a3 (patch) | |
tree | 3b8d5c1e0ca588dcc3e7c16a547e356abb5edcd1 | |
parent | c919b7feecff8a28d5bd0217d6c26afcb536f33c (diff) | |
download | mongo-aaf901fe6e4c53e170f1e8161a6cf20dee16e2a3.tar.gz |
BSONObj::isValid makes sure objects are less than 8mb
-rw-r--r-- | db/jsobj.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/jsobj.h b/db/jsobj.h index 4109ea99f1e..3a45e42d2dc 100644 --- a/db/jsobj.h +++ b/db/jsobj.h @@ -1723,7 +1723,7 @@ namespace mongo { } inline bool BSONObj::isValid(){ - return objsize() > 0 && objsize() <= 1024 * 1024 * 16 ; + return objsize() > 0 && objsize() <= 1024 * 1024 * 8; } inline bool BSONObj::getObjectID(BSONElement& e) { |