0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-56994 Do not interrupt ShardingDDLCoordinator instances before releasing distributed locks

This commit is contained in:
Tommaso Tocci 2021-05-17 10:43:48 +02:00 committed by Evergreen Agent
parent 23c40392fd
commit 325a6e9d0d

View File

@ -217,9 +217,10 @@ SemiFuture<void> ShardingDDLCoordinator::run(std::shared_ptr<executor::ScopedTas
const auto docWasRemoved = _removeDocument(opCtx);
if (!docWasRemoved) {
// Release the instance without interrupting it
_service->releaseInstance(BSON(ShardingDDLCoordinatorMetadata::kIdFieldName
<< _coorMetadata.getId().toBSON()),
status);
Status::OK());
}
} catch (DBException& ex) {
static constexpr auto errMsg = "Failed to release sharding DDL coordinator";