diff options
Diffstat (limited to 'src/mongo/db/repl/collection_cloner.cpp')
-rw-r--r-- | src/mongo/db/repl/collection_cloner.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mongo/db/repl/collection_cloner.cpp b/src/mongo/db/repl/collection_cloner.cpp index cf3d0b63bde..a974144673a 100644 --- a/src/mongo/db/repl/collection_cloner.cpp +++ b/src/mongo/db/repl/collection_cloner.cpp @@ -122,10 +122,9 @@ CollectionCloner::CollectionCloner(executor::TaskExecutor* executor, [this](const executor::TaskExecutor::RemoteCommandCallbackArgs& args) { return _countCallback(args); }, - RemoteCommandRetryScheduler::makeRetryPolicy( + RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::RetriableError>( numInitialSyncCollectionCountAttempts.load(), - executor::RemoteCommandRequest::kNoTimeout, - RemoteCommandRetryScheduler::kAllRetriableErrors)), + executor::RemoteCommandRequest::kNoTimeout)), _listIndexesFetcher( _executor, _source, @@ -139,10 +138,9 @@ CollectionCloner::CollectionCloner(executor::TaskExecutor* executor, ReadPreferenceSetting::secondaryPreferredMetadata(), RemoteCommandRequest::kNoTimeout /* find network timeout */, RemoteCommandRequest::kNoTimeout /* getMore network timeout */, - RemoteCommandRetryScheduler::makeRetryPolicy( + RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::RetriableError>( numInitialSyncListIndexesAttempts.load(), - executor::RemoteCommandRequest::kNoTimeout, - RemoteCommandRetryScheduler::kAllRetriableErrors)), + executor::RemoteCommandRequest::kNoTimeout)), _indexSpecs(), _documentsToInsert(), _dbWorkTaskRunner(_dbWorkThreadPool), |