diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-05-26 14:28:32 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-05-28 07:56:01 -0400 |
commit | cb4aaa05318c532b7df2f363555df5f49cd4ff7f (patch) | |
tree | 022876e06a3dd6875733768a0d5eaf9846a23e3f /src/mongo/client/replica_set_monitor_internal.h | |
parent | 845a2dcc23a597520065d1258089cc87dabf6cb8 (diff) | |
download | mongo-cb4aaa05318c532b7df2f363555df5f49cd4ff7f.tar.gz |
SERVER-18438 Move replica set monitor tests out of dbtest
Diffstat (limited to 'src/mongo/client/replica_set_monitor_internal.h')
-rw-r--r-- | src/mongo/client/replica_set_monitor_internal.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mongo/client/replica_set_monitor_internal.h b/src/mongo/client/replica_set_monitor_internal.h index 6d5f54bf3b1..7f434c302e7 100644 --- a/src/mongo/client/replica_set_monitor_internal.h +++ b/src/mongo/client/replica_set_monitor_internal.h @@ -40,7 +40,7 @@ #include <vector> #include "mongo/base/disallow_copying.h" -#include "mongo/client/dbclient_rs.h" // for TagSet and ReadPreferenceSettings +#include "mongo/client/read_preference.h" #include "mongo/client/replica_set_monitor.h" #include "mongo/db/jsobj.h" #include "mongo/platform/cstdint.h" @@ -48,6 +48,7 @@ #include "mongo/util/net/hostandport.h" namespace mongo { + struct ReplicaSetMonitor::IsMasterReply { IsMasterReply() : ok(false) {} IsMasterReply(const HostAndPort& host, int64_t latencyMicros, const BSONObj& reply) @@ -94,7 +95,7 @@ namespace mongo { isMaster = false; } - bool matches(const ReadPreference& pref) const; + bool matches(const ReadPreference pref) const; /** * Checks if the given tag matches the tag attached to this node. @@ -125,6 +126,7 @@ namespace mongo { int64_t latencyMicros; // unknownLatency if unknown BSONObj tags; // owned }; + typedef std::vector<Node> Nodes; /** @@ -207,4 +209,5 @@ namespace mongo { typedef std::vector<IsMasterReply> UnconfirmedReplies; UnconfirmedReplies unconfirmedReplies; }; -} + +} // namespace mongo |