From 0f16c5fc452d16c5a92e43e9fdd96f3822f05271 Mon Sep 17 00:00:00 2001 From: Ben Caimano Date: Mon, 9 Sep 2019 18:45:01 +0000 Subject: SERVER-42908 Add ErrorCodes to retryable errors to match drivers --- src/mongo/db/repl/collection_cloner.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/mongo/db/repl/collection_cloner.cpp') diff --git a/src/mongo/db/repl/collection_cloner.cpp b/src/mongo/db/repl/collection_cloner.cpp index d6c17b38cfd..b081be1fce0 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( 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( numInitialSyncListIndexesAttempts.load(), - executor::RemoteCommandRequest::kNoTimeout, - RemoteCommandRetryScheduler::kAllRetriableErrors)), + executor::RemoteCommandRequest::kNoTimeout)), _indexSpecs(), _documentsToInsert(), _dbWorkTaskRunner(_dbWorkThreadPool), -- cgit v1.2.1