diff options
author | Andrew Morrow <acm@mongodb.com> | 2015-06-10 19:01:38 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2015-06-10 22:38:00 -0400 |
commit | 4035cab6b974613af9eb06ac1a92cc39d6ba8e06 (patch) | |
tree | 15c606e4514037d563fad28de9c091de3d9e473e /src/mongo/client/dbclient_rs.h | |
parent | 1360f243ee7fa662c0ded25a9bc479aa47388446 (diff) | |
download | mongo-4035cab6b974613af9eb06ac1a92cc39d6ba8e06.tar.gz |
SERVER-17307 Replace boost::shared_ptr and friends with std::shared_ptr
Diffstat (limited to 'src/mongo/client/dbclient_rs.h')
-rw-r--r-- | src/mongo/client/dbclient_rs.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/client/dbclient_rs.h b/src/mongo/client/dbclient_rs.h index ac2fd24f161..68481b34ec8 100644 --- a/src/mongo/client/dbclient_rs.h +++ b/src/mongo/client/dbclient_rs.h @@ -29,7 +29,6 @@ #pragma once -#include <boost/shared_ptr.hpp> #include <utility> #include "mongo/client/dbclientinterface.h" @@ -40,7 +39,7 @@ namespace mongo { class ReplicaSetMonitor; class TagSet; struct ReadPreferenceSetting; - typedef boost::shared_ptr<ReplicaSetMonitor> ReplicaSetMonitorPtr; + typedef std::shared_ptr<ReplicaSetMonitor> ReplicaSetMonitorPtr; /** Use this class to connect to a replica set of servers. The class will manage checking for which server in a replica set is master, and do failover automatically. @@ -222,7 +221,7 @@ namespace mongo { * @throws DBException when an error occurred either when trying to connect to * a node that was thought to be ok or when an assertion happened. */ - DBClientConnection* selectNodeUsingTags(boost::shared_ptr<ReadPreferenceSetting> readPref); + DBClientConnection* selectNodeUsingTags(std::shared_ptr<ReadPreferenceSetting> readPref); /** * @return true if the last host used in the last slaveOk query is still in the @@ -277,7 +276,7 @@ namespace mongo { // if connection is primary, it is owned by _master so it is incorrect to return // it to the pool. std::unique_ptr<DBClientConnection> _lastSlaveOkConn; - boost::shared_ptr<ReadPreferenceSetting> _lastReadPref; + std::shared_ptr<ReadPreferenceSetting> _lastReadPref; double _so_timeout; |