diff options
Diffstat (limited to 'src/mongo/s/client')
-rw-r--r-- | src/mongo/s/client/shard.cpp | 2 | ||||
-rw-r--r-- | src/mongo/s/client/shard_remote.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/s/client/shard.cpp b/src/mongo/s/client/shard.cpp index be61c500604..006af71f3dc 100644 --- a/src/mongo/s/client/shard.cpp +++ b/src/mongo/s/client/shard.cpp @@ -97,7 +97,7 @@ bool Shard::shouldErrorBePropagated(ErrorCodes::Error code) { return std::find(RemoteCommandRetryScheduler::kAllRetriableErrors.begin(), RemoteCommandRetryScheduler::kAllRetriableErrors.end(), code) == RemoteCommandRetryScheduler::kAllRetriableErrors.end() && - code != ErrorCodes::ExceededTimeLimit; + code != ErrorCodes::NetworkInterfaceExceededTimeLimit; } Shard::Shard(const ShardId& id) : _id(id) {} diff --git a/src/mongo/s/client/shard_remote.cpp b/src/mongo/s/client/shard_remote.cpp index 00c9141f2d6..1f0538a19f5 100644 --- a/src/mongo/s/client/shard_remote.cpp +++ b/src/mongo/s/client/shard_remote.cpp @@ -142,7 +142,7 @@ void ShardRemote::updateReplSetMonitor(const HostAndPort& remoteHost, _targeter->markHostUnreachable(remoteHost, remoteCommandStatus); } else if (remoteCommandStatus == ErrorCodes::NotMasterOrSecondary) { _targeter->markHostUnreachable(remoteHost, remoteCommandStatus); - } else if (remoteCommandStatus == ErrorCodes::ExceededTimeLimit) { + } else if (remoteCommandStatus == ErrorCodes::NetworkInterfaceExceededTimeLimit) { _targeter->markHostUnreachable(remoteHost, remoteCommandStatus); } } @@ -228,7 +228,7 @@ Shard::HostWithResponse ShardRemote::_runCommand(OperationContext* txn, updateReplSetMonitor(host.getValue(), swResponse.status); if (!swResponse.isOK()) { - if (swResponse.status.compareCode(ErrorCodes::ExceededTimeLimit)) { + if (ErrorCodes::isExceededTimeLimitError(swResponse.status.code())) { LOG(0) << "Operation timed out with status " << redact(swResponse.status); } return Shard::HostWithResponse(host.getValue(), swResponse.status); @@ -362,7 +362,7 @@ StatusWith<Shard::QueryResponse> ShardRemote::_exhaustiveFindOnConfig( updateReplSetMonitor(host.getValue(), status); if (!status.isOK()) { - if (status.compareCode(ErrorCodes::ExceededTimeLimit)) { + if (ErrorCodes::isExceededTimeLimitError(status.code())) { LOG(0) << "Operation timed out " << causedBy(status); } return status; |