summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_planner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/query_planner.cpp')
-rw-r--r--src/mongo/db/query/query_planner.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/query/query_planner.cpp b/src/mongo/db/query/query_planner.cpp
index 43ada571f37..4cdcbff54a3 100644
--- a/src/mongo/db/query/query_planner.cpp
+++ b/src/mongo/db/query/query_planner.cpp
@@ -49,7 +49,7 @@
namespace mongo {
- using std::auto_ptr;
+ using std::unique_ptr;
using std::numeric_limits;
// Copied verbatim from db/index.h
@@ -250,7 +250,7 @@ namespace mongo {
return Status(ErrorCodes::BadValue, "Cannot produce cache data: tree is NULL.");
}
- auto_ptr<PlanCacheIndexTree> indexTree(new PlanCacheIndexTree());
+ unique_ptr<PlanCacheIndexTree> indexTree(new PlanCacheIndexTree());
if (NULL != taggedTree->getTag()) {
IndexTag* itag = static_cast<IndexTag*>(taggedTree->getTag());
@@ -758,7 +758,7 @@ namespace mongo {
if (!indexTreeStatus.isOK()) {
LOG(5) << "Query is not cachable: " << indexTreeStatus.reason() << endl;
}
- auto_ptr<PlanCacheIndexTree> autoData(cacheData);
+ unique_ptr<PlanCacheIndexTree> autoData(cacheData);
// This can fail if enumeration makes a mistake.
QuerySolutionNode* solnRoot =