summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/record_store_fast_count.h
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-50984 Add CollectionPtr to replace usage of const Collection*Henrik Edin2020-09-261-1/+1
| | | | | | | | | | | | It implements a yieldable interface that is used to re-load the Collection pointer from the catalog after a yield that released locks. With lock-free reads and copy-on-write on Collection instances releasing locks without notifying an AutoGetCollection at a higher level may cause its pointers to dangle if a MODE_X writer installs a new Collection instance in the catalog. CollectionPtr should be passed by const reference so a yield can notify all the way up.
* SERVER-47885 Added lookupCollectionByXXXForRead interface to the Collection ↵Henrik Edin2020-08-071-1/+1
| | | | | | | | | catalog that returns collection as shared_ptr<const Collection> AutoGetCollectionForRead and AutoGetCollectionForReadCommand now uses this and holds the shared_ptr. They return the collection as const. Const correct various places to make this possible. Moved some logic from Collection destructors to deregister from the catalog as they may now be destroyed at a later point.
* SERVER-45406 Plumb ExpressionContext through PlanStageIan Boros2020-02-281-1/+1
| | | | This patch includes also moves ownership of the collator to the ExpressionContext.
* SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.12019-07-271-1/+1
|
* SERVER-37447 Introduce RequiresIndexStage and use for IXSCAN.David Storch2018-11-271-2/+2
|
* SERVER-37446 Change PlanStages which don't require a collection to avoid ↵David Storch2018-11-071-0/+78
keeping a Collection*. In order to prevent COUNT stage from requiring a Collection*, splits fast count into a new RECORD_STORE_FAST_COUNT stage.