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/db/repl/resync.cpp | |
parent | 0239597c2a2f1689a2969acd9b776dad3582ac7e (diff) | |
download | mongo-80f039c34373228fd7720ab3782cf1755397116d.tar.gz |
SERVER-14420 Get rid of global replSettings object
Diffstat (limited to 'src/mongo/db/repl/resync.cpp')
-rw-r--r-- | src/mongo/db/repl/resync.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/resync.cpp b/src/mongo/db/repl/resync.cpp index 5267532e17e..431050b3551 100644 --- a/src/mongo/db/repl/resync.cpp +++ b/src/mongo/db/repl/resync.cpp @@ -28,7 +28,7 @@ #include "mongo/db/commands.h" #include "mongo/db/repl/master_slave.h" // replSettings -#include "mongo/db/repl/repl_settings.h" // replSettings +#include "mongo/db/repl/repl_coordinator_global.h" #include "mongo/db/repl/rs.h" // replLocalAuth() #include "mongo/db/operation_context_impl.h" @@ -70,7 +70,7 @@ namespace repl { Lock::GlobalWrite globalWriteLock(txn->lockState()); WriteUnitOfWork wunit(txn->recoveryUnit()); Client::Context ctx(txn, ns); - if (replSettings.usingReplSets()) { + if (getGlobalReplicationCoordinator()->getSettings().usingReplSets()) { if (!theReplSet) { errmsg = "no replication yet active"; return false; |