summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog/sharding_catalog_write_retry_test.cpp
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2019-05-20 16:10:46 -0400
committerJudah Schvimer <judah@mongodb.com>2019-05-20 16:10:46 -0400
commitb205efb00fd6e9ce27646070e934983384e8c0e2 (patch)
tree76580416b9c78d4e3290c680907aebd350873a62 /src/mongo/s/catalog/sharding_catalog_write_retry_test.cpp
parentfae0c3f0fa4d5dfbe2f4fb03715b60e9ce3e2d93 (diff)
downloadmongo-b205efb00fd6e9ce27646070e934983384e8c0e2.tar.gz
SERVER-41216 Rename InterruptedDueToStepDown error code to InterruptedDueToReplStateChange
Diffstat (limited to 'src/mongo/s/catalog/sharding_catalog_write_retry_test.cpp')
-rw-r--r--src/mongo/s/catalog/sharding_catalog_write_retry_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/s/catalog/sharding_catalog_write_retry_test.cpp b/src/mongo/s/catalog/sharding_catalog_write_retry_test.cpp
index ae1c8b8ac5c..6ffc535bcb7 100644
--- a/src/mongo/s/catalog/sharding_catalog_write_retry_test.cpp
+++ b/src/mongo/s/catalog/sharding_catalog_write_retry_test.cpp
@@ -100,7 +100,7 @@ TEST_F(InsertRetryTest, RetryOnInterruptedAndNetworkErrorSuccess) {
onCommand([&](const RemoteCommandRequest& request) {
ASSERT_EQ(request.target, kTestHosts[0]);
configTargeter()->setFindHostReturnValue({kTestHosts[1]});
- return Status(ErrorCodes::InterruptedDueToStepDown, "Interruption");
+ return Status(ErrorCodes::InterruptedDueToReplStateChange, "Interruption");
});
onCommand([&](const RemoteCommandRequest& request) {
@@ -488,7 +488,8 @@ TEST_F(UpdateRetryTest, OperationInterruptedDueToPrimaryStepDown) {
auto writeErrDetail = stdx::make_unique<WriteErrorDetail>();
writeErrDetail->setIndex(0);
- writeErrDetail->setStatus({ErrorCodes::InterruptedDueToStepDown, "Operation interrupted"});
+ writeErrDetail->setStatus(
+ {ErrorCodes::InterruptedDueToReplStateChange, "Operation interrupted"});
response.addToErrDetails(writeErrDetail.release());
return response.toBSON();