diff options
author | Jason Carey <jcarey@argv.me> | 2015-09-23 11:11:40 -0400 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2015-10-06 19:28:19 -0400 |
commit | b7104c6f2f597335c6b9890ff6b80243625a6258 (patch) | |
tree | 8107d9b98344574c7bd541619c1fcb5b727b0eb2 /src/mongo/db/matcher | |
parent | e5f65d77a33e5116adb965549deb51ab3ed0a462 (diff) | |
download | mongo-b7104c6f2f597335c6b9890ff6b80243625a6258.tar.gz |
SERVER-20564 no default getOwned for BSON in JS
Diffstat (limited to 'src/mongo/db/matcher')
-rw-r--r-- | src/mongo/db/matcher/expression_where.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/matcher/expression_where.cpp b/src/mongo/db/matcher/expression_where.cpp index 21c276a10b6..8f26ad7ca1e 100644 --- a/src/mongo/db/matcher/expression_where.cpp +++ b/src/mongo/db/matcher/expression_where.cpp @@ -135,6 +135,7 @@ bool WhereMatchExpression::matches(const MatchableDocument* doc, MatchDetails* d _scope->init(&_userScope); } + _scope->advanceGeneration(); _scope->setObject("obj", const_cast<BSONObj&>(obj)); _scope->setBoolean("fullObject", true); // this is a hack b/c fullObject used to be relevant |