diff options
author | Tommaso Tocci <tommaso.tocci@mongodb.com> | 2021-05-17 10:43:48 +0200 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-17 14:51:14 +0000 |
commit | 325a6e9d0d710abdddad2d6abb468e0070612c55 (patch) | |
tree | e49d93179aec87f9578acb5e1332f89f11cf0114 /src | |
parent | 23c40392fd939334752d2b20a75e77e89517feea (diff) | |
download | mongo-325a6e9d0d710abdddad2d6abb468e0070612c55.tar.gz |
SERVER-56994 Do not interrupt ShardingDDLCoordinator instances before releasing distributed locks
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/s/sharding_ddl_coordinator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/s/sharding_ddl_coordinator.cpp b/src/mongo/db/s/sharding_ddl_coordinator.cpp index 87051eb4385..0f18a2685ac 100644 --- a/src/mongo/db/s/sharding_ddl_coordinator.cpp +++ b/src/mongo/db/s/sharding_ddl_coordinator.cpp @@ -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"; |