@@ -35,7 +35,7 @@ namespace mongo {
3535 * Holds state about a replica set and provides a means to refresh the local view.
3636 * All methods perform the required synchronization to allow callers from multiple threads.
3737 */
38- class MONGO_CLIENT_API ReplicaSetMonitor {
38+ class ReplicaSetMonitor {
3939 MONGO_DISALLOW_COPYING (ReplicaSetMonitor);
4040 public:
4141 class Refresher ;
@@ -126,26 +126,26 @@ namespace mongo {
126126 /* *
127127 * Creates a new ReplicaSetMonitor, if it doesn't already exist.
128128 */
129- static void MONGO_CLIENT_FUNC createIfNeeded (const std::string& name , const std::set<HostAndPort>& servers);
129+ static void createIfNeeded (const std::string& name , const std::set<HostAndPort>& servers);
130130
131131 /* *
132132 * gets a cached Monitor per name. If the monitor is not found and createFromSeed is false,
133133 * it will return none. If createFromSeed is true, it will try to look up the last known
134134 * servers list for this set and will create a new monitor using that as the seed list.
135135 */
136- static ReplicaSetMonitorPtr MONGO_CLIENT_FUNC get (const std::string& name, bool createFromSeed = false );
136+ static ReplicaSetMonitorPtr get (const std::string& name, bool createFromSeed = false );
137137
138138 /* *
139139 * Returns all the currently tracked replica set names.
140140 */
141- static std::set<std::string> MONGO_CLIENT_FUNC getAllTrackedSets ();
141+ static std::set<std::string> getAllTrackedSets ();
142142
143143 /* *
144144 * Removes the ReplicaSetMonitor for the given set name from _sets, which will delete it.
145145 * If clearSeedCache is true, then the cached seed string for this Replica Set will be
146146 * removed from _seedServers.
147147 */
148- static void MONGO_CLIENT_FUNC remove (const std::string& name, bool clearSeedCache = false );
148+ static void remove (const std::string& name, bool clearSeedCache = false );
149149
150150 /* *
151151 * Sets the hook to be called whenever the config of any replica set changes.
@@ -156,15 +156,15 @@ namespace mongo {
156156 *
157157 * The hook must not be changed while the program has multiple threads.
158158 */
159- static void MONGO_CLIENT_FUNC setConfigChangeHook (ConfigChangeHook hook);
159+ static void setConfigChangeHook (ConfigChangeHook hook);
160160
161161 /* *
162162 * Starts the ReplicaSetMonitorWatcher. You shouldn't have to call this in production code
163163 * as it is called in init.cpp. However, it may be useful to pair calls to initalize
164164 * and cleanup in tests. The behavior of other methods in this class is undefined if initialize()
165165 * has not been called.
166166 */
167- static Status MONGO_CLIENT_FUNC initialize ();
167+ static Status initialize ();
168168
169169 /* *
170170 * Permanently stops all monitoring on replica sets and clears all cached information
@@ -176,7 +176,7 @@ namespace mongo {
176176 * of 0 (the default) indicates no timeout. If a nonzero timeout is specified, a return value
177177 * of Status::OK() indicates that shutdown completed successfully in the allotted time.
178178 */
179- static Status MONGO_CLIENT_FUNC shutdown (int gracePeriodMillis = 0 );
179+ static Status shutdown (int gracePeriodMillis = 0 );
180180
181181 /* *
182182 * If a ReplicaSetMonitor has been refreshed more than this many times in a row without
@@ -228,7 +228,7 @@ namespace mongo {
228228 * All logic related to choosing the hosts to contact and updating the SetState based on replies
229229 * lives in this class.
230230 */
231- class MONGO_CLIENT_API ReplicaSetMonitor::Refresher {
231+ class ReplicaSetMonitor ::Refresher {
232232 public:
233233 /* *
234234 * Contact hosts in the set to refresh our view, but stop once a host matches criteria.
@@ -303,7 +303,7 @@ namespace mongo {
303303 /* *
304304 * Starts a new scan over the hosts in set.
305305 */
306- static ScanStatePtr MONGO_CLIENT_FUNC startNewScan (const SetState* set);
306+ static ScanStatePtr startNewScan (const SetState* set);
307307
308308 private:
309309 /* *
0 commit comments