diff options
Diffstat (limited to 'src/mongo/s/catalog/legacy/distlock.cpp')
-rw-r--r-- | src/mongo/s/catalog/legacy/distlock.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/s/catalog/legacy/distlock.cpp b/src/mongo/s/catalog/legacy/distlock.cpp index 48379989edc..4bd85c52517 100644 --- a/src/mongo/s/catalog/legacy/distlock.cpp +++ b/src/mongo/s/catalog/legacy/distlock.cpp @@ -31,7 +31,6 @@ #include "mongo/s/catalog/legacy/distlock.h" -#include <boost/scoped_ptr.hpp> #include "mongo/db/server_options.h" #include "mongo/client/dbclientcursor.h" @@ -44,7 +43,7 @@ namespace mongo { - using boost::scoped_ptr; + using std::unique_ptr; using std::unique_ptr; using std::endl; using std::list; @@ -174,7 +173,7 @@ namespace mongo { string errMsg; Milliseconds delay{0}; - scoped_ptr<ScopedDbConnection> connPtr; + unique_ptr<ScopedDbConnection> connPtr; try { connPtr.reset( new ScopedDbConnection( server.toString() ) ); ScopedDbConnection& conn = *connPtr; @@ -791,7 +790,7 @@ namespace mongo { while ( ++attempted <= maxAttempts ) { // Awkward, but necessary since the constructor itself throws exceptions - scoped_ptr<ScopedDbConnection> connPtr; + unique_ptr<ScopedDbConnection> connPtr; try { |