Please review the code associated with this ticket (mentioned as TODO(TICKET-NUMBER) in the code).
Using the CollectionPtr constructor with a Collection* is considered as unsafe as the Collection* could go stale. Please use the CollectionPtr(ConsistentCollection collection) constructor instead of the CollectionPtr::CollectionPtr_UNSAFE static function through the acquisition API or write a reasoning as a replacement of the TODO comment in the code why is it not feasible to replace.
- blocks
-
SERVER-103415 Replace CollectionPtr(const Collection* coll) with a non-const version
-
- Blocked
-
- is depended on by
-
SERVER-103415 Replace CollectionPtr(const Collection* coll) with a non-const version
-
- Blocked
-
- related to
-
SERVER-100333 Prepare to remove CollectionPtr(const Collection*) constructor
-
- Closed
-