Change the AutoGetCollectionForRead class to no longer take collection MODE_IS locks, when flagged to do so, while still performing the same checks and providing the same read semantics.
The flagging may be done through a special enum constant to be passed to the constructor, or similar approach. The idea is that we can change individual call sites to use lock-free reads or not.
This ticket probably can only be tested through a unit test or dbtest until at least SERVER-50145 is done.
- is depended on by
-
SERVER-51319 Check DatabaseShardingState::checkDbVersion after acquiring a storage snapshot for AutoGetCollection*LFR
- Closed
-
SERVER-51326 Add ViewCatalog to catalog_raii_test.cpp and add unit testing
- Closed
- is related to
-
SERVER-51320 Investigate removing <dbname>.system.views CollectionLocks from the ViewCatalog functions
- Closed