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:
parent
23c40392fd
commit
325a6e9d0d
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user