diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-10-27 12:21:03 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-11-01 14:18:08 -0400 |
commit | 411df166ebc9d8883dc918b2550099ef8a678006 (patch) | |
tree | 79c23fd37446bb05a532f0d4d04be6633250a8af /src/mongo/client/dbclient_rs_test.cpp | |
parent | cb0e59f347d31fe4190ccb1a56589e79a40649d8 (diff) | |
download | mongo-411df166ebc9d8883dc918b2550099ef8a678006.tar.gz |
SERVER-26108 Speed up dbclient_rs_test by disabling sleepy retries
Diffstat (limited to 'src/mongo/client/dbclient_rs_test.cpp')
-rw-r--r-- | src/mongo/client/dbclient_rs_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/client/dbclient_rs_test.cpp b/src/mongo/client/dbclient_rs_test.cpp index 1a97f870bcf..b80113649d5 100644 --- a/src/mongo/client/dbclient_rs_test.cpp +++ b/src/mongo/client/dbclient_rs_test.cpp @@ -38,6 +38,7 @@ #include <string> #include <vector> +#include "mongo/base/init.h" #include "mongo/base/string_data.h" #include "mongo/client/connpool.h" #include "mongo/client/dbclient_rs.h" @@ -60,6 +61,11 @@ using std::string; using std::unique_ptr; using std::vector; +MONGO_INITIALIZER(DisableReplicaSetMonitorRefreshRetries)(InitializerContext*) { + ReplicaSetMonitor::disableRefreshRetries_forTest(); + return Status::OK(); +} + /** * Constructs a metadata object containing the passed server selection metadata. */ |