summaryrefslogtreecommitdiff
path: root/src/mongo/shell/bench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/bench.cpp')
-rw-r--r--src/mongo/shell/bench.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/shell/bench.cpp b/src/mongo/shell/bench.cpp
index b0ecb34c0bb..151c0a6ed3b 100644
--- a/src/mongo/shell/bench.cpp
+++ b/src/mongo/shell/bench.cpp
@@ -738,7 +738,7 @@ namespace mongo {
void BenchRunWorker::run() {
try {
BenchRunWorkerStateGuard _workerStateGuard( _brState );
- boost::scoped_ptr<DBClientBase> conn( _config->createConnection() );
+ std::unique_ptr<DBClientBase> conn( _config->createConnection() );
if ( !_config->username.empty() ) {
string errmsg;
if (!conn->auth("admin", _config->username, _config->password, errmsg)) {
@@ -776,7 +776,7 @@ namespace mongo {
void BenchRunner::start( ) {
{
- boost::scoped_ptr<DBClientBase> conn( _config->createConnection() );
+ std::unique_ptr<DBClientBase> conn( _config->createConnection() );
// Must authenticate to admin db in order to run serverStatus command
if (_config->username != "") {
string errmsg;
@@ -814,7 +814,7 @@ namespace mongo {
delete _brTimer;
{
- boost::scoped_ptr<DBClientBase> conn( _config->createConnection() );
+ std::unique_ptr<DBClientBase> conn( _config->createConnection() );
if (_config->username != "") {
string errmsg;
// this can only fail if admin access was revoked since start of run