diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-12-19 14:23:08 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2018-07-23 16:56:06 -0400 |
commit | ca6228daa963e5c0ea5df680206f82dd73eb2fd2 (patch) | |
tree | baa71947816820f3483ea42a57b0b8b1df97b145 /src/mongo/bson/bsonobj.cpp | |
parent | e64cf49efa5410aafdbf1a837070563abcf41fb2 (diff) | |
download | mongo-ca6228daa963e5c0ea5df680206f82dd73eb2fd2.tar.gz |
SERVER-32302 Compute BSONElement sizes eagerly
(cherry picked from commit 0d38ef54970744aca3565fabbda76bd6e7836f7a)
Diffstat (limited to 'src/mongo/bson/bsonobj.cpp')
-rw-r--r-- | src/mongo/bson/bsonobj.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/bsonobj.cpp b/src/mongo/bson/bsonobj.cpp index 5ec83659f63..6f357308727 100644 --- a/src/mongo/bson/bsonobj.cpp +++ b/src/mongo/bson/bsonobj.cpp @@ -608,7 +608,7 @@ void BSONObj::toString( bool first = true; while (1) { massert(10327, "Object does not end with EOO", i.moreWithEOO()); - BSONElement e = i.next(true); + BSONElement e = i.next(); massert(10328, "Invalid element size", e.size() > 0); massert(10329, "Element too large", e.size() < (1 << 30)); int offset = (int)(e.rawdata() - this->objdata()); |