diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/s/cluster_commands_helpers.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/s/cluster_commands_helpers.cpp b/src/mongo/s/cluster_commands_helpers.cpp index 0b6759c211c..44241865243 100644 --- a/src/mongo/s/cluster_commands_helpers.cpp +++ b/src/mongo/s/cluster_commands_helpers.cpp @@ -223,6 +223,13 @@ std::vector<AsyncRequestsSender::Response> gatherResponsesImpl( if (ErrorCodes::CommandOnShardedViewNotSupportedOnMongod == status) { uassertStatusOK(status); } + + if (ErrorCodes::TenantMigrationAborted == status) { + uassertStatusOK(status.withContext( + str::stream() << "got TenantMigrationAborted response from shard " + << response.shardId << " at host " + << response.shardHostAndPort->toString())); + } } responses.push_back(std::move(response)); } |