diff options
author | Spencer T Brody <spencer@mongodb.com> | 2014-07-08 16:56:30 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2014-07-09 11:54:38 -0400 |
commit | 80f039c34373228fd7720ab3782cf1755397116d (patch) | |
tree | ca04a93dfbff1ba847a6bbcb9a688d42cc0b71f6 /src/mongo/tools | |
parent | 0239597c2a2f1689a2969acd9b776dad3582ac7e (diff) | |
download | mongo-80f039c34373228fd7720ab3782cf1755397116d.tar.gz |
SERVER-14420 Get rid of global replSettings object
Diffstat (limited to 'src/mongo/tools')
-rw-r--r-- | src/mongo/tools/tool.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/tools/tool.cpp b/src/mongo/tools/tool.cpp index 92daecb1860..ac009f39552 100644 --- a/src/mongo/tools/tool.cpp +++ b/src/mongo/tools/tool.cpp @@ -77,7 +77,8 @@ namespace mongo { MONGO_INITIALIZER(ToolMocks)(InitializerContext*) { setGlobalAuthorizationManager(new AuthorizationManager( new AuthzManagerExternalStateMock())); - repl::setGlobalReplicationCoordinator(new repl::ReplicationCoordinatorMock()); + repl::ReplSettings replSettings; + repl::setGlobalReplicationCoordinator(new repl::ReplicationCoordinatorMock(replSettings)); setGlobalEnvironment(new GlobalEnvironmentNoop()); return Status::OK(); } |