diff options
author | Simon Graetzer <simon.gratzer@mongodb.com> | 2021-07-06 07:52:28 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-06 08:17:00 +0000 |
commit | 201f3d1d493e8d0744c4ca7599d6b2d44e29d8b2 (patch) | |
tree | 5817131fac5912580e8437510fa54e963147c854 /src/mongo/db/s/drop_collection_coordinator.cpp | |
parent | d08c26c369053ea8565c033ae8a9f446607f6d6c (diff) | |
download | mongo-201f3d1d493e8d0744c4ca7599d6b2d44e29d8b2.tar.gz |
SERVER-56649 Make renameCollection resilient to network partitions
Diffstat (limited to 'src/mongo/db/s/drop_collection_coordinator.cpp')
-rw-r--r-- | src/mongo/db/s/drop_collection_coordinator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/s/drop_collection_coordinator.cpp b/src/mongo/db/s/drop_collection_coordinator.cpp index 127a53ec21d..690c4cde6c5 100644 --- a/src/mongo/db/s/drop_collection_coordinator.cpp +++ b/src/mongo/db/s/drop_collection_coordinator.cpp @@ -186,7 +186,8 @@ ExecutorFuture<void> DropCollectionCoordinator::_runImpl( if (collIsSharded) { invariant(_doc.getCollInfo()); const auto& coll = _doc.getCollInfo().get(); - sharding_ddl_util::removeCollAndChunksMetadataFromConfig(opCtx, coll); + sharding_ddl_util::removeCollAndChunksMetadataFromConfig( + opCtx, coll, ShardingCatalogClient::kMajorityWriteConcern); } // Remove tags even if the collection is not sharded or didn't exist |