From 4505469acf24d828a4e573527ba1a6483fff6ec0 Mon Sep 17 00:00:00 2001 From: Paolo Polato Date: Fri, 10 Jun 2022 12:44:26 +0000 Subject: SERVER-67106 allow the execution of _flushRoutingTableCacheUpdates over collection views (cherry picked from commit 8e0bbe75ef81964f8d15a1e9cc2c33e988a120df) --- src/mongo/db/s/flush_routing_table_cache_updates_command.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mongo/db') 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 -- cgit v1.2.1