summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient_rs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/dbclient_rs.h')
-rw-r--r--src/mongo/client/dbclient_rs.h7
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;