summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/query_stage_count.cpp
diff options
context:
space:
mode:
authorQingyang Chen <qingyang.chen@10gen.com>2015-06-19 17:21:47 -0400
committerQingyang Chen <qingyang.chen@10gen.com>2015-07-06 18:00:21 -0400
commit32f04880f175fd3a3ce848ca074be72adc6d638c (patch)
tree040ef2400f925fe39878bdd6b605bce9a83c8290 /src/mongo/dbtests/query_stage_count.cpp
parent8567716e593426868f161a7e5e822486ca93336c (diff)
downloadmongo-32f04880f175fd3a3ce848ca074be72adc6d638c.tar.gz
SERVER-16889 StatusWithMatchExpression replace ME* with unique_ptr<ME>
Diffstat (limited to 'src/mongo/dbtests/query_stage_count.cpp')
-rw-r--r--src/mongo/dbtests/query_stage_count.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/dbtests/query_stage_count.cpp b/src/mongo/dbtests/query_stage_count.cpp
index 652747bc482..82952021dca 100644
--- a/src/mongo/dbtests/query_stage_count.cpp
+++ b/src/mongo/dbtests/query_stage_count.cpp
@@ -140,8 +140,10 @@ public:
unique_ptr<WorkingSet> ws(new WorkingSet);
- StatusWithMatchExpression swme = MatchExpressionParser::parse(request.getQuery());
- unique_ptr<MatchExpression> expression(swme.getValue());
+ StatusWithMatchExpression statusWithMatcher =
+ MatchExpressionParser::parse(request.getQuery());
+ ASSERT(statusWithMatcher.isOK());
+ unique_ptr<MatchExpression> expression = std::move(statusWithMatcher.getValue());
PlanStage* scan;
if (indexed) {