diff options
author | Pierlauro Sciarelli <pierlauro.sciarelli@mongodb.com> | 2021-03-25 18:58:01 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-26 15:28:24 +0000 |
commit | 52ae7dc57616085c8e53a4d1dbc18b90531d3d6b (patch) | |
tree | 37114931acbdc6e062d3c9076a640db204a65580 /src/mongo/db/s/sharding_ddl_coordinator.h | |
parent | c4174b655601ab8a374920247bbf758a34079ca2 (diff) | |
download | mongo-52ae7dc57616085c8e53a4d1dbc18b90531d3d6b.tar.gz |
SERVER-54605 Make rename collection coordinator resilient to stepdowns (Part 1)
Diffstat (limited to 'src/mongo/db/s/sharding_ddl_coordinator.h')
-rw-r--r-- | src/mongo/db/s/sharding_ddl_coordinator.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/s/sharding_ddl_coordinator.h b/src/mongo/db/s/sharding_ddl_coordinator.h index f692a3a00f0..d6e040ab33c 100644 --- a/src/mongo/db/s/sharding_ddl_coordinator.h +++ b/src/mongo/db/s/sharding_ddl_coordinator.h @@ -54,7 +54,7 @@ public: * * This is used to decide if we can join a previously created coordinator. * In the case the given coordinator document has incompatible options with this, - * this function must throw a ConflictingOprationInProgress exception with an adequate message. + * this function must throw a ConflictingOperationInProgress exception with an adequate message. */ virtual void checkIfOptionsConflict(const BSONObj& coorDoc) const = 0; @@ -90,6 +90,11 @@ public: } protected: + virtual std::vector<DistLockManager::ScopedDistLock> _acquireAdditionalLocks( + OperationContext* opCtx) { + return {}; + }; + ShardingDDLCoordinatorMetadata _coorMetadata; private: |