diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2016-08-16 12:05:35 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2016-08-25 13:34:16 -0400 |
commit | 6b571fa314a9c5d193d362570bb58064d1d1fb0f (patch) | |
tree | 65fe8ecb710be879db8109bc3f92e4718efafdba /src/mongo/client/remote_command_retry_scheduler.cpp | |
parent | 3eaf36bc9fb28f9ca63b0d7de33e9f587aa88325 (diff) | |
download | mongo-6b571fa314a9c5d193d362570bb58064d1d1fb0f.tar.gz |
SERVER-25126 Return a different error code if the step down occurs after the write
Diffstat (limited to 'src/mongo/client/remote_command_retry_scheduler.cpp')
-rw-r--r-- | src/mongo/client/remote_command_retry_scheduler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/client/remote_command_retry_scheduler.cpp b/src/mongo/client/remote_command_retry_scheduler.cpp index ded4a10d964..f72874a33a4 100644 --- a/src/mongo/client/remote_command_retry_scheduler.cpp +++ b/src/mongo/client/remote_command_retry_scheduler.cpp @@ -95,6 +95,7 @@ const std::initializer_list<ErrorCodes::Error> RemoteCommandRetryScheduler::kAll ErrorCodes::HostUnreachable, ErrorCodes::HostNotFound, ErrorCodes::NetworkTimeout, + ErrorCodes::PrimarySteppedDown, ErrorCodes::InterruptedDueToReplStateChange}; std::unique_ptr<RemoteCommandRetryScheduler::RetryPolicy> |