diff options
author | Qingyang Chen <qingyang.chen@10gen.com> | 2015-06-24 15:44:52 -0400 |
---|---|---|
committer | Qingyang Chen <qingyang.chen@10gen.com> | 2015-06-26 16:50:26 -0400 |
commit | badc2ac4496c47ae2bbdebf47888a1a5449a22a1 (patch) | |
tree | 5b4f1fbc76af3301048ecc14233c1e1143d11b0e /src/mongo/db/exec/subplan.cpp | |
parent | 9ad1597c2d2ead08a74bd8f53a8458d0f7cb3987 (diff) | |
download | mongo-badc2ac4496c47ae2bbdebf47888a1a5449a22a1.tar.gz |
SERVER-16889 MatchExpression::shallowClone() return unique_ptr<ME>
Diffstat (limited to 'src/mongo/db/exec/subplan.cpp')
-rw-r--r-- | src/mongo/db/exec/subplan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/subplan.cpp b/src/mongo/db/exec/subplan.cpp index a5b33be1ba9..517ab49825a 100644 --- a/src/mongo/db/exec/subplan.cpp +++ b/src/mongo/db/exec/subplan.cpp @@ -230,7 +230,7 @@ Status tagOrChildAccordingToCache(PlanCacheIndexTree* compositeCacheData, Status SubplanStage::choosePlanForSubqueries(PlanYieldPolicy* yieldPolicy) { // This is what we annotate with the index selections and then turn into a solution. unique_ptr<OrMatchExpression> orExpr( - static_cast<OrMatchExpression*>(_query->root()->shallowClone())); + static_cast<OrMatchExpression*>(_query->root()->shallowClone().release())); // This is the skeleton of index selections that is inserted into the cache. unique_ptr<PlanCacheIndexTree> cacheData(new PlanCacheIndexTree()); |