summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/resync.cpp
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2016-05-31 12:10:45 -0400
committerEric Milkie <milkie@10gen.com>2016-06-01 09:52:41 -0400
commitb360d5833b6c20ddc64b8a18456b359aa718e3fe (patch)
tree04f75f6b4c858031726e28d6742f533eb40fc6d6 /src/mongo/db/repl/resync.cpp
parentb02759c687efcde72a0343532ae4c1b896d1db64 (diff)
downloadmongo-b360d5833b6c20ddc64b8a18456b359aa718e3fe.tar.gz
SERVER-24318 change BackgroundSync to one owned object by the Repl ExternalState, to simplify lifetime issues
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 86797724eed..a5b5928b273 100644
--- a/src/mongo/db/repl/resync.cpp
+++ b/src/mongo/db/repl/resync.cpp
@@ -29,9 +29,9 @@
#include "mongo/db/commands.h"
#include "mongo/db/concurrency/d_concurrency.h"
#include "mongo/db/operation_context.h"
-#include "mongo/db/repl/bgsync.h"
#include "mongo/db/repl/master_slave.h" // replSettings
#include "mongo/db/repl/replication_coordinator_global.h"
+#include "mongo/db/repl/replication_coordinator_impl.h"
namespace mongo {
@@ -85,7 +85,7 @@ public:
return appendCommandStatus(
result, Status(ErrorCodes::NotSecondary, "primaries cannot resync"));
}
- BackgroundSync::get()->setInitialSyncRequestedFlag(true);
+ replCoord->setInitialSyncRequestedFlag(true);
return true;
}