summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/uncommitted_multikey.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-57122 Make RecoveryUnit decorable and use it for ↵Faustoleyva542021-12-211-2/+2
| | | | UncommitedCollections and UncommittedCatalogUpdates
* SERVER-56002 SERVER-56023 Store Collection metadata in the Collection and ↵Henrik Edin2021-05-201-0/+45
reply on the copy-on-write machinery to keep it in sync with the durable catalog. All updates to the metadata needs to happen through the Collection, moved interfaces from the DurableCatalog to the Collection. Removed back pointer to Collection in IndexCatalogEntryImpl, interfaces now correctly take a const or non-const Collection. This should make its iterface const-correct to avoid making bugs where the copy-on-write system for Collections are bypassed. Multikey handle is special as it needs to happen without exclusive access to the Collection. Implemented isolation for the Collection metadata when multikey is changed. It handles multi-doc transactions and is only commited to the Collection instance after the write to the durable catalog successfully commits. listCollections and listIndexes can now safetly read the metadata cache without needing to read from the durable catalog making them safe to do without Collection level locks.