summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
diff options
context:
space:
mode:
authorAndrew Shuvalov <andrew.shuvalov@mongodb.com>2021-03-01 22:18:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-01 22:44:46 +0000
commit33a8c0755e5d0e6202bdc5bb746fcb9ff9645766 (patch)
treed1bd03ecb7e53a78c359f67ff25b4b394b86b24f /src/mongo/db/commands/tenant_migration_donor_cmds.cpp
parent4fbc6225a2baaaea78c73ded66048a198677e335 (diff)
downloadmongo-33a8c0755e5d0e6202bdc5bb746fcb9ff9645766.tar.gz
Revert "SERVER-54650: Make recipientSyncData and recipientForgetMigration require runTenantMigration action type"
This reverts commit f30e562830d4790afbf86d03a583b9cacc30a382.
Diffstat (limited to 'src/mongo/db/commands/tenant_migration_donor_cmds.cpp')
-rw-r--r--src/mongo/db/commands/tenant_migration_donor_cmds.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/commands/tenant_migration_donor_cmds.cpp b/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
index 3df446a8b77..19eb886ce20 100644
--- a/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
+++ b/src/mongo/db/commands/tenant_migration_donor_cmds.cpp
@@ -126,8 +126,7 @@ public:
return response;
}
- private:
- void doCheckAuthorization(OperationContext* opCtx) const final {
+ void doCheckAuthorization(OperationContext* opCtx) const {
uassert(ErrorCodes::Unauthorized,
"Unauthorized",
AuthorizationSession::get(opCtx->getClient())
@@ -135,6 +134,7 @@ public:
ActionType::runTenantMigration));
}
+ private:
bool supportsWriteConcern() const override {
return false;
}
@@ -196,7 +196,7 @@ public:
}
private:
- void doCheckAuthorization(OperationContext* opCtx) const final {
+ void doCheckAuthorization(OperationContext* opCtx) const {
uassert(ErrorCodes::Unauthorized,
"Unauthorized",
AuthorizationSession::get(opCtx->getClient())
@@ -285,7 +285,7 @@ public:
}
private:
- void doCheckAuthorization(OperationContext* opCtx) const final {
+ void doCheckAuthorization(OperationContext* opCtx) const {
uassert(ErrorCodes::Unauthorized,
"Unauthorized",
AuthorizationSession::get(opCtx->getClient())