summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/resync.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2014-07-08 16:56:30 -0400
committerSpencer T Brody <spencer@mongodb.com>2014-07-09 11:54:38 -0400
commit80f039c34373228fd7720ab3782cf1755397116d (patch)
treeca04a93dfbff1ba847a6bbcb9a688d42cc0b71f6 /src/mongo/db/repl/resync.cpp
parent0239597c2a2f1689a2969acd9b776dad3582ac7e (diff)
downloadmongo-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.cpp4
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;