summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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