summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
diff options
context:
space:
mode:
authorJason Zhang <jason.zhang@mongodb.com>2021-02-24 21:14:50 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-02 00:29:51 +0000
commit8c248bf16a781bd096f1829ab61bed9f5655ad41 (patch)
tree96d4f9bcfa19f1516280ed24cf96068dc93d8d17 /src/mongo/db/commands/tenant_migration_donor_cmds.cpp
parenta22cbaba0634e6d20244b75c94e8e693e961399d (diff)
downloadmongo-8c248bf16a781bd096f1829ab61bed9f5655ad41.tar.gz
SERVER-51774 Ensure the donor's
TenantMigrationCommitted/TenantMigrationAborted write errors don't exceed the max BSON size
Diffstat (limited to 'src/mongo/db/commands/tenant_migration_donor_cmds.cpp')
-rw-r--r--src/mongo/db/commands/tenant_migration_donor_cmds.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/commands/tenant_migration_donor_cmds.cpp b/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
index 19eb886ce20..6814c2a2db5 100644
--- a/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
+++ b/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
@@ -35,7 +35,6 @@
#include "mongo/db/repl/repl_server_parameters_gen.h"
#include "mongo/db/repl/replication_coordinator.h"
#include "mongo/db/repl/tenant_migration_access_blocker_util.h"
-#include "mongo/db/repl/tenant_migration_committed_info.h"
#include "mongo/db/repl/tenant_migration_donor_service.h"
namespace mongo {
@@ -278,8 +277,7 @@ public:
auto durableState = donor->getDurableState(opCtx);
- uassert(TenantMigrationCommittedInfo(donor->getTenantId().toString(),
- donor->getRecipientConnectionString().toString()),
+ uassert(ErrorCodes::TenantMigrationCommitted,
"Tenant migration already committed",
durableState.state == TenantMigrationDonorStateEnum::kAborted);
}