diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-10-10 20:00:30 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-10-10 20:01:17 -0400 |
commit | d3c3b8a9032e3cd125ebb09bec967441f1451753 (patch) | |
tree | 90e11d693c59117b80d6563efa8616376f375822 /util | |
parent | f6141d9bac74be42762c234769b44a661cc1f77c (diff) | |
download | mongo-d3c3b8a9032e3cd125ebb09bec967441f1451753.tar.gz |
using BSONObjMaxSize everywhere bson size comes into play
still 4mb, this is just prep for changing SERVER-431
Diffstat (limited to 'util')
-rw-r--r-- | util/message.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/message.h b/util/message.h index b77e727e9ed..e5153174e22 100644 --- a/util/message.h +++ b/util/message.h @@ -243,7 +243,7 @@ struct OP_GETMORE : public MSGHEADER { } bool valid(){ - if ( len <= 0 || len > ( 1024 * 1024 * 10 ) ) + if ( len <= 0 || len > ( 4 * BSONObjMaxSize ) ) return false; if ( _operation < 0 || _operation > 30000 ) return false; |