diff options
author | Eric Milkie <milkie@10gen.com> | 2016-05-31 12:10:45 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2016-06-01 09:52:41 -0400 |
commit | b360d5833b6c20ddc64b8a18456b359aa718e3fe (patch) | |
tree | 04f75f6b4c858031726e28d6742f533eb40fc6d6 /src/mongo/db/repl/resync.cpp | |
parent | b02759c687efcde72a0343532ae4c1b896d1db64 (diff) | |
download | mongo-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.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 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; } |