diff options
author | Jason Chan <jason.chan@10gen.com> | 2020-03-11 17:00:58 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-13 18:42:39 +0000 |
commit | 1cb592ac1b74e8f62d2ded5959945d626483402c (patch) | |
tree | a2d5c547cd000889a4e9064775d3a2e23a71c796 /src/mongo/db/repl/replication_coordinator_impl.cpp | |
parent | 1490ba67c628322584715348fab2fcbe6bd86bfe (diff) | |
download | mongo-1cb592ac1b74e8f62d2ded5959945d626483402c.tar.gz |
SERVER-44272 Re-implement replSetSyncFrom logic while in initial sync
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_impl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.cpp b/src/mongo/db/repl/replication_coordinator_impl.cpp index e59f11a9fa2..e01d6a8ea62 100644 --- a/src/mongo/db/repl/replication_coordinator_impl.cpp +++ b/src/mongo/db/repl/replication_coordinator_impl.cpp @@ -2988,10 +2988,9 @@ Status ReplicationCoordinatorImpl::processReplSetSyncFrom(OperationContext* opCt } // If we are in the middle of an initial sync, do a resync. - if (result.isOK() && initialSyncerCopy && initialSyncerCopy->isActive()) { - return resyncData(opCtx, false); + if (result.isOK() && initialSyncerCopy) { + initialSyncerCopy->cancelCurrentAttempt(); } - return result; } |