Any code directly accessing a CollectionPtr through the CollectionCatalog interface should not have yield/restore capability. Only AutoGet* helpers should have CollectionPtr instances that yield. This ensures that the CollectionPtr is properly set up for the use case.
Places like this CollectionCatalog function should return a default lambda that just invariants. The AutoGet helpers should always explicitly set the restoreFromYieldFn.
- is duplicated by
-
SERVER-70846 Create interface for users to customize restore-after-yield function in CollectionPtr
-
- Closed
-