summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_where.cpp
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2017-04-24 11:28:44 -0400
committerJonathan Reams <jbreams@mongodb.com>2017-05-01 11:57:39 -0400
commit8665131a118e9515fc18ba0d41dcc773874f1529 (patch)
tree3697acbe3346e1a11f3002bf9f21c4e72653254f /src/mongo/db/matcher/expression_where.cpp
parentb779cb0bf72267b8d6cefbb4739c118a720026da (diff)
downloadmongo-8665131a118e9515fc18ba0d41dcc773874f1529.tar.gz
SERVER-28941 MatchExpressionWhere can discard errors when it's shallowCloned
Diffstat (limited to 'src/mongo/db/matcher/expression_where.cpp')
-rw-r--r--src/mongo/db/matcher/expression_where.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_where.cpp b/src/mongo/db/matcher/expression_where.cpp
index c1d1b5d307c..35f53f1ac14 100644
--- a/src/mongo/db/matcher/expression_where.cpp
+++ b/src/mongo/db/matcher/expression_where.cpp
@@ -114,7 +114,7 @@ unique_ptr<MatchExpression> WhereMatchExpression::shallowClone() const {
params.scope = getScope();
unique_ptr<WhereMatchExpression> e =
make_unique<WhereMatchExpression>(_opCtx, std::move(params));
- e->init(_dbName);
+ uassertStatusOK(e->init(_dbName));
if (getTag()) {
e->setTag(getTag()->clone());
}