diff options
author | Paolo Polato <paolo.polato@mongodb.com> | 2022-06-10 12:44:26 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-13 09:09:53 +0000 |
commit | 4505469acf24d828a4e573527ba1a6483fff6ec0 (patch) | |
tree | 1eafe9638b8bb8f2ab076599060938c19bb5579f /src/mongo/db | |
parent | 63a8db3b942ab424565516ce841dbf0e35d4b46a (diff) | |
download | mongo-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.cpp | 3 |
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 |