diff options
author | Cheahuychou Mao <mao.cheahuychou@gmail.com> | 2021-05-21 04:59:02 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-21 20:39:29 +0000 |
commit | 90827ec44f3787be928b6ec0849160ab48f1fbfe (patch) | |
tree | 49512ffcb7e25c95db76fa33f21d0ac6d04d6a36 /src/mongo/db/repl/tenant_migration_conflict_info.h | |
parent | f522af24c8cc07bdb4d2437074e9d8b3e01a880e (diff) | |
download | mongo-90827ec44f3787be928b6ec0849160ab48f1fbfe.tar.gz |
SERVER-57132 Remove OperationType in TenantMigrationAccessBlocker
Diffstat (limited to 'src/mongo/db/repl/tenant_migration_conflict_info.h')
-rw-r--r-- | src/mongo/db/repl/tenant_migration_conflict_info.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mongo/db/repl/tenant_migration_conflict_info.h b/src/mongo/db/repl/tenant_migration_conflict_info.h index aa7ab16fa5e..4f9c9c087e1 100644 --- a/src/mongo/db/repl/tenant_migration_conflict_info.h +++ b/src/mongo/db/repl/tenant_migration_conflict_info.h @@ -41,10 +41,8 @@ public: static constexpr auto code = ErrorCodes::TenantMigrationConflict; TenantMigrationConflictInfo(const std::string tenantId, - std::shared_ptr<TenantMigrationAccessBlocker> mtab = nullptr, - TenantMigrationAccessBlocker::OperationType operationType = - TenantMigrationAccessBlocker::kWrite) - : _tenantId(std::move(tenantId)), _mtab(std::move(mtab)), _operationType(operationType){}; + std::shared_ptr<TenantMigrationAccessBlocker> mtab = nullptr) + : _tenantId(std::move(tenantId)), _mtab(std::move(mtab)){}; const auto& getTenantId() const { return _tenantId; @@ -54,17 +52,12 @@ public: return _mtab; } - TenantMigrationAccessBlocker::OperationType getOperationType() const { - return _operationType; - } - void serialize(BSONObjBuilder* bob) const override; static std::shared_ptr<const ErrorExtraInfo> parse(const BSONObj&); private: std::string _tenantId; std::shared_ptr<TenantMigrationAccessBlocker> _mtab; - TenantMigrationAccessBlocker::OperationType _operationType; }; using TenantMigrationConflictException = ExceptionFor<ErrorCodes::TenantMigrationConflict>; using TenantMigrationCommittedException = ExceptionFor<ErrorCodes::TenantMigrationCommitted>; |