summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shard_local.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-54284 ExceptionFor<ErrorCodes::WriteConflict> should resolve to ↵Amirsaman Memaripour2023-01-191-1/+1
| | | | | | WriteConflictException (cherry picked from commit 4fee73e53ecdbfff73d644dd743b66d5e16a1836)
* SERVER-64285 Create indexes on `config.rangeDeletions`Allison Easton2022-04-281-6/+13
| | | | (cherry picked from commit 0d1f974d015f3e527f66d0dd6d1e623dc43571e6)
* SERVER-62050 Remove _opCtx from AutoGetCollectionFaustoleyva542022-01-051-1/+1
|
* SERVER-57680 Use namespace instead of nss for naming log attributesSanika Phanse2021-11-081-1/+1
|
* SERVER-49897 Insert no-op entries into oplog buffer collections for ↵jannaerin2021-07-291-3/+5
| | | | resharding so resuming is less wasteful
* SERVER-47828 Add getConfig* methods to avoid copying ReplSetConfigCarolyn Duan2021-06-221-2/+1
| | | | through ReplicationCoordinatorImpl::getConfig()
* SERVER-56002 SERVER-56023 Store Collection metadata in the Collection and ↵Henrik Edin2021-05-201-0/+1
| | | | | | | | | | | 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.
* SERVER-47123 remove sharding (and resharding) references to AutoGetOrCreateDbBenety Goh2021-04-291-2/+1
| | | | This RAII type is deprecated in favor of AutoGetDb and AutoGetCollection.
* SERVER-54975 Rename IDL parser classes to use CommandRequest and ↵Bernard Gorman2021-04-021-1/+1
| | | | CommandReply suffixes
* SERVER-54874: Ensure reading consistent config.collections and config.chunks ↵Jordi Serra Torrens2021-03-151-1/+1
| | | | | | when refreshing the CatalogCache (cherry picked from commit 538cb2ff982aab2a60c4f3ab53eb1ba6d1acfeb9)
* Revert "SERVER-54874: Ensure reading consistent config.collections and ↵Jordi Serra Torrens2021-03-091-1/+1
| | | | | | config.chunks when refreshing the CatalogCache" This reverts commit dc009c5a8d484f6a0db2f357274e14e30ea9f476.
* SERVER-54874: Ensure reading consistent config.collections and config.chunks ↵Jordi Serra Torrens2021-03-081-1/+1
| | | | when refreshing the CatalogCache
* SERVER-53105: Pass 'hint' when querying config.chunks in ↵Jordi Serra Torrens2021-02-161-2/+4
| | | | ConfigServerCatalogCacheLoader
* SERVER-51649 Convert aggregate command input to IDLRuoxin Xu2021-01-071-1/+1
|
* SERVER-53550 Retry on QueryPlanKilled errors when triggering refresh.Max Hirschhorn2021-01-071-8/+18
| | | | Introduces a new kIdempotentOrCursorInvalidated retry policy.
* SERVER-51245: Have resharding oplog fetching use a Fetcher.Daniel Gottlieb2020-11-251-0/+6
|
* Revert "SERVER-51245: Have resharding oplog fetching use a Fetcher."Uladzimir Makouski2020-11-251-6/+0
| | | | This reverts commit cda3a52701fe4143b06bd981b98514e69d0a93eb.
* SERVER-51245: Have resharding oplog fetching use a Fetcher.Daniel Gottlieb2020-11-251-0/+6
|
* SERVER-51733 fix fromMigrate when creating indexes in the config dbBenety Goh2020-10-271-1/+1
|
* SERVER-51733 ShardLocal::createIndexOnConfig() falls back on hybrid index ↵Benety Goh2020-10-271-8/+26
| | | | build if collection is not empty
* SERVER-50145 Collection instances are modified using copy-on-writeHenrik Edin2020-10-081-1/+2
| | | | | | | | When a writable collection is requested from the catalog a cloned instance will be returned. Its lifetime is managed by default in a WriteUnitOfWork and committed into the catalog in a commit handler. In the case of a rollback the cloned and modified collection instance is simply discarded. This removes the need to setup rollback handlers to restore any state written to a collection in the case of a rollback.
* SERVER-50984 Add CollectionPtr to replace usage of const Collection*Henrik Edin2020-09-261-1/+3
| | | | | | | | | | | | 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-50907 Make Shard objects cache their own connection stringsKevin Pulo2020-09-261-8/+1
|
* SERVER-48775 Move all Sharding unit-tests that assume a MongoD to the db/s ↵Kaloian Manassiev2020-06-211-0/+190
directory With this change there are no more references from mongo/s (which is code common between MongoS and MongoD) and mongo/db/s (which is code specific for MongoD only).