diff options
Diffstat (limited to 'src/mongo/db/s/flush_routing_table_cache_updates_command.cpp')
-rw-r--r-- | src/mongo/db/s/flush_routing_table_cache_updates_command.cpp | 7 |
1 files changed, 5 insertions, 2 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 f85f73c0ef4..5ddda7894a8 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 @@ -117,8 +117,11 @@ public: boost::optional<SharedSemiFuture<void>> criticalSectionSignal; { - AutoGetCollection autoColl( - opCtx, ns(), MODE_IS, AutoGetCollectionViewMode::kViewsPermitted); + AutoGetCollection autoColl(opCtx, + ns(), + MODE_IS, + AutoGetCollection::Options{}.viewMode( + auto_get_collection::ViewMode::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 |