diff options
author | Gregory Noma <gregory.noma@gmail.com> | 2020-07-09 10:46:37 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-20 13:35:53 +0000 |
commit | 2cf8cd352731e3996342ce92b900514f4899db52 (patch) | |
tree | 03e929143a3476c2d7c422f8c3b4eddd3a485a46 /src/mongo/db/s/shard_filtering_metadata_refresh.cpp | |
parent | ab1a892520e9a9b84ae90d52f84a0f107efbdecd (diff) | |
download | mongo-2cf8cd352731e3996342ce92b900514f4899db52.tar.gz |
SERVER-43633 Prohibit user writes to system.views in FCV 4.6
Diffstat (limited to 'src/mongo/db/s/shard_filtering_metadata_refresh.cpp')
-rw-r--r-- | src/mongo/db/s/shard_filtering_metadata_refresh.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mongo/db/s/shard_filtering_metadata_refresh.cpp b/src/mongo/db/s/shard_filtering_metadata_refresh.cpp index f82c83acdd1..b7354a600e0 100644 --- a/src/mongo/db/s/shard_filtering_metadata_refresh.cpp +++ b/src/mongo/db/s/shard_filtering_metadata_refresh.cpp @@ -349,7 +349,6 @@ ChunkVersion forceShardFilteringMetadataRefresh(OperationContext* opCtx, auto cm = routingInfo.cm(); if (!cm) { - // TODO SERVER-43633 change to AutoGetCollection // No chunk manager, so unsharded. Avoid using AutoGetCollection() as it returns the // InvalidViewDefinition error code if an invalid view is in the 'system.views' collection. AutoGetDb autoDb(opCtx, nss.db(), MODE_IX); @@ -363,7 +362,6 @@ ChunkVersion forceShardFilteringMetadataRefresh(OperationContext* opCtx, // Optimistic check with only IS lock in order to avoid threads piling up on the collection X // lock below { - // TODO SERVER-43633 change to AutoGetCollection // Avoid using AutoGetCollection() as it returns the InvalidViewDefinition error code // if an invalid view is in the 'system.views' collection. AutoGetDb autoDb(opCtx, nss.db(), MODE_IS); |