diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2017-04-24 11:28:44 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2017-05-01 11:57:39 -0400 |
commit | 8665131a118e9515fc18ba0d41dcc773874f1529 (patch) | |
tree | 3697acbe3346e1a11f3002bf9f21c4e72653254f /src/mongo/db/matcher/expression_where.cpp | |
parent | b779cb0bf72267b8d6cefbb4739c118a720026da (diff) | |
download | mongo-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.cpp | 2 |
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()); } |