diff options
author | Sviatlana Zuiko <sviatlana.zuiko@mongodb.com> | 2021-05-11 18:04:04 +0300 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-11 16:37:58 +0000 |
commit | 01018b26d53b9561250374c2864e54016d54e034 (patch) | |
tree | dc8e0887a99166c4d8a378383b87f0c326021bc4 /src/mongo/s/commands/strategy.cpp | |
parent | 8951dcb47708e988e75565e4a8fa4bf8eb941d03 (diff) | |
download | mongo-01018b26d53b9561250374c2864e54016d54e034.tar.gz |
Revert "SERVER-50549 transform state-changing errors returned by mongos"
This reverts commit 1e10e32780ca47969342f6b52bfe09bc4134831e.
Diffstat (limited to 'src/mongo/s/commands/strategy.cpp')
-rw-r--r-- | src/mongo/s/commands/strategy.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/s/commands/strategy.cpp b/src/mongo/s/commands/strategy.cpp index 82c30bd02e3..4429987d9f3 100644 --- a/src/mongo/s/commands/strategy.cpp +++ b/src/mongo/s/commands/strategy.cpp @@ -73,7 +73,6 @@ #include "mongo/rpc/metadata/tracking_metadata.h" #include "mongo/rpc/op_msg.h" #include "mongo/rpc/op_msg_rpc_impls.h" -#include "mongo/rpc/rewrite_state_change_errors.h" #include "mongo/s/catalog_cache.h" #include "mongo/s/client/shard_registry.h" #include "mongo/s/cluster_commands_helpers.h" @@ -1326,11 +1325,6 @@ DbResponse ClientCommand::_produceResponse() { dbResponse.nextInvocation = reply->getNextInvocation(); } } - if (auto doc = rpc::RewriteStateChangeErrors::rewrite(reply->getBodyBuilder().asTempObj(), - _rec->getOpCtx())) { - reply->reset(); - reply->getBodyBuilder().appendElements(*doc); - } dbResponse.response = reply->done(); return dbResponse; |