summaryrefslogtreecommitdiff
path: root/src/mongo/db/cloner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/cloner.cpp')
-rw-r--r--src/mongo/db/cloner.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/cloner.cpp b/src/mongo/db/cloner.cpp
index 52aa4babaa1..8ed98728c83 100644
--- a/src/mongo/db/cloner.cpp
+++ b/src/mongo/db/cloner.cpp
@@ -68,7 +68,7 @@
namespace mongo {
using boost::scoped_ptr;
- using std::auto_ptr;
+ using std::unique_ptr;
using std::list;
using std::set;
using std::endl;
@@ -467,7 +467,7 @@ namespace mongo {
}
else if ( !masterSameProcess ) {
std::string errmsg;
- auto_ptr<DBClientBase> con( cs.connect( errmsg ));
+ unique_ptr<DBClientBase> con( cs.connect( errmsg ));
if (!con.get()) {
return Status(ErrorCodes::HostUnreachable, errmsg);
}
@@ -479,7 +479,7 @@ namespace mongo {
"Unable to authenticate as internal user");
}
- _conn = con;
+ _conn = std::move(con);
}
else {
_conn.reset(new DBDirectClient(txn));