summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@mongodb.com>2022-03-15 10:02:18 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-16 15:16:25 +0000
commitd173689149305c83f6c5e45878e54698694f4106 (patch)
treee3591c36c4f8862c1e761260297a1a8e88dbeaaa /src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp
parent3818135a1b201fc2fbb9286c14bafd88f159a08f (diff)
downloadmongo-d173689149305c83f6c5e45878e54698694f4106.tar.gz
SERVER-63417 Oplog fetcher should not retry when a node is known to be down
Diffstat (limited to 'src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp')
-rw-r--r--src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp b/src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp
index f26f2a1dd0a..abb8f3bebd8 100644
--- a/src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp
+++ b/src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp
@@ -45,7 +45,7 @@ ChangeSyncSourceAction DataReplicatorExternalStateInitialSync::shouldStopFetchin
const rpc::ReplSetMetadata&,
const rpc::OplogQueryMetadata&,
const OpTime& previousOpTimeFetched,
- const OpTime& lastOpTimeFetched) {
+ const OpTime& lastOpTimeFetched) const {
// Since initial sync does not allow for sync source changes, it should not check if there are
// better sync sources. If there is a problem on the sync source, it will manifest itself in the
@@ -54,5 +54,11 @@ ChangeSyncSourceAction DataReplicatorExternalStateInitialSync::shouldStopFetchin
return ChangeSyncSourceAction::kContinueSyncing;
}
+ChangeSyncSourceAction DataReplicatorExternalStateInitialSync::shouldStopFetchingOnError(
+ const HostAndPort&, const OpTime& lastOpTimeFetched) const {
+
+ return ChangeSyncSourceAction::kContinueSyncing;
+}
+
} // namespace repl
} // namespace mongo