diff options
author | Ranjay Krishna <rak248@cornell.edu> | 2013-12-18 15:24:59 -0500 |
---|---|---|
committer | Matt Kangas <matt.kangas@mongodb.com> | 2013-12-28 11:32:36 -0500 |
commit | 6c5777102a973d9b5e41619f2315b75da3be3084 (patch) | |
tree | b48935c1c54fa147de9608bca0d8f266e94ed54f /src/mongo/client/dbclient_rs.h | |
parent | e63ebb10569e05b65a34071f0a9360374b4d7139 (diff) | |
download | mongo-6c5777102a973d9b5e41619f2315b75da3be3084.tar.gz |
SERVER-3364 Label rest of client api with MONGO_CLIENT_API
build all the sharedclient programs using the new macro MONGO_CLIENT_API in mongo/client/export_macros.h
Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Diffstat (limited to 'src/mongo/client/dbclient_rs.h')
-rw-r--r-- | src/mongo/client/dbclient_rs.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mongo/client/dbclient_rs.h b/src/mongo/client/dbclient_rs.h index 7bcd2cc2eeb..0ef57d42b55 100644 --- a/src/mongo/client/dbclient_rs.h +++ b/src/mongo/client/dbclient_rs.h @@ -25,6 +25,7 @@ #include <utility> #include "mongo/client/dbclientinterface.h" +#include "mongo/client/export_macros.h" #include "mongo/util/net/hostandport.h" namespace mongo { @@ -42,7 +43,7 @@ namespace mongo { * one instance per process per replica set * TODO: we might be able to use a regular Node * to avoid _lock */ - class ReplicaSetMonitor { + class MONGO_CLIENT_API ReplicaSetMonitor { public: typedef boost::function1<void,const ReplicaSetMonitor*> ConfigChangeHook; @@ -266,7 +267,7 @@ namespace mongo { string getServerAddress() const; bool contains( const string& server ) const; - + void appendInfo( BSONObjBuilder& b ) const; /** @@ -416,7 +417,7 @@ namespace mongo { On a failover situation, expect at least one operation to return an error (throw an exception) before the failover is complete. Operations are not retried. */ - class DBClientReplicaSet : public DBClientBase { + class MONGO_CLIENT_API DBClientReplicaSet : public DBClientBase { public: using DBClientBase::query; using DBClientBase::update; @@ -604,7 +605,7 @@ namespace mongo { // Last used connection in a slaveOk query (can be a primary) boost::shared_ptr<DBClientConnection> _lastSlaveOkConn; boost::shared_ptr<ReadPreferenceSetting> _lastReadPref; - + double _so_timeout; // we need to store so that when we connect to a new node on failure @@ -635,7 +636,7 @@ namespace mongo { * A simple object for representing the list of tags. The initial state will * have a valid current tag as long as the list is not empty. */ - class TagSet { + class MONGO_CLIENT_API TagSet { public: /** * Creates an empty tag list that is initially exhausted. @@ -712,7 +713,7 @@ namespace mongo { scoped_ptr<BSONArrayIteratorSorted> _tagIterator; }; - struct ReadPreferenceSetting { + struct MONGO_CLIENT_API ReadPreferenceSetting { /** * @parm pref the read preference mode. * @param tag the tag set. Note that this object will have the |