summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbmessage.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2016-04-07 18:31:21 -0400
committerMathias Stearn <mathias@10gen.com>2016-04-21 18:38:56 -0400
commita7a593da31a944c90d7c5f0422eeee8264eb438d (patch)
tree58bb8fed4985c08b4b7cdf11793e19bd2c5621a7 /src/mongo/db/dbmessage.h
parent98ba7f26e13edbd221afca2d119e844896397752 (diff)
downloadmongo-a7a593da31a944c90d7c5f0422eeee8264eb438d.tar.gz
SERVER-23128 Parsers that parse legacy and command writes into uniform objects
Diffstat (limited to 'src/mongo/db/dbmessage.h')
-rw-r--r--src/mongo/db/dbmessage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/dbmessage.h b/src/mongo/db/dbmessage.h
index 976e4b37de1..29629e552fd 100644
--- a/src/mongo/db/dbmessage.h
+++ b/src/mongo/db/dbmessage.h
@@ -237,7 +237,7 @@ public:
/* for insert and update msgs */
bool moreJSObjs() const {
- return _nextjsobj != 0;
+ return _nextjsobj != 0 && _nextjsobj != _theEnd;
}
BSONObj nextJsObj();