summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
authorPaolo Polato <paolo.polato@mongodb.com>2022-06-10 12:44:26 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-13 09:09:53 +0000
commit4505469acf24d828a4e573527ba1a6483fff6ec0 (patch)
tree1eafe9638b8bb8f2ab076599060938c19bb5579f /src/mongo/db
parent63a8db3b942ab424565516ce841dbf0e35d4b46a (diff)
downloadmongo-4505469acf24d828a4e573527ba1a6483fff6ec0.tar.gz
SERVER-67106 allow the execution of _flushRoutingTableCacheUpdates over collection views
(cherry picked from commit 8e0bbe75ef81964f8d15a1e9cc2c33e988a120df)
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/s/flush_routing_table_cache_updates_command.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/s/flush_routing_table_cache_updates_command.cpp b/src/mongo/db/s/flush_routing_table_cache_updates_command.cpp
index cc695eecfa6..d3d07f05031 100644
--- a/src/mongo/db/s/flush_routing_table_cache_updates_command.cpp
+++ b/src/mongo/db/s/flush_routing_table_cache_updates_command.cpp
@@ -111,7 +111,8 @@ public:
auto& oss = OperationShardingState::get(opCtx);
{
- AutoGetCollection autoColl(opCtx, ns(), MODE_IS);
+ AutoGetCollection autoColl(
+ opCtx, ns(), MODE_IS, AutoGetCollectionViewMode::kViewsPermitted);
// If the primary is in the critical section, secondaries must wait for the commit
// to finish on the primary in case a secondary's caller has an afterClusterTime