summaryrefslogtreecommitdiff
path: root/src/mongo/db/system_index.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-55708 remove unused parameter from ↵Benety Goh2021-04-021-8/+3
| | | | index_key_validate::validateIndexSpec()
* SERVER-40811 make initializers throwyBilly Donahue2020-12-081-2/+0
| | | | | | | - Consolidate init-related headers (just init.h and initializer.h) - Factor out a separate DependencyGraph component - Remove MONGO_DEFAULT_PREREQUISITES, MONGO_NO_PREREQUISITES, MONGO_NO_DEPENDENTS. - Document the role of the "default" initializer.
* SERVER-50031 createSystemIndexes should allow WriteConflictExceptions to escapeBenety Goh2020-10-261-0/+3
|
* SERVER-50145 Collection instances are modified using copy-on-writeHenrik Edin2020-10-081-2/+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/+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-50408 Change NotMaster error name to NotWritablePrimaryPavi Vetriselvan2020-09-031-1/+1
|
* SERVER-50317 Const correct uses of CollectionHenrik Edin2020-09-021-7/+7
| | | | | | Most of the code should only need a const Collection now. AutoGetCollection returns a const Collection by default. There is a placeholder getWritableCollection() interface that will handle the necessary steps we need for lock free reads in the future. Added some operators to AutoGetCollection so it behaves more like a smart pointer.
* SERVER-47182 IndexBuildsCoordinator::createIndexes() accepts single index specBenety Goh2020-06-041-2/+2
|
* SERVER-48148 Cleanup of execution logs in db/Henrik Edin2020-05-151-5/+8
|
* SERVER-47735 change mongo source over to logv2Billy Donahue2020-04-261-1/+1
| | | | | | - Remove several legacy logger/ files - Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version. - Globally replace logger::{LogSeverity,LogComponent} => logv2::
* SERVER-47358 Take collection MODE_X locks instead of database MODE_X lock in ↵Gregory Noma2020-04-071-11/+10
| | | | verifySystemIndexes
* SERVER-47040 LOGV2_FATAL also fassertsHenrik Edin2020-03-241-4/+4
| | | | Added LOGV2_FATAL_NOTRACE and LOGV2_CONTINUE to have different behavior.
* SERVER-45567 removing util/log.h where I canGabriel Russell2020-02-211-1/+0
| | | | | | | o converting some log lines that were missed o fixing some missing includes create mode 100644 src/mongo/transport/ismaster_metrics.cpp
* SERVER-45869 automatically converted structured loggingGabriel Russell2020-02-131-4/+12
|
* SERVER-43859: Take MODE_IX locks for collection creation.Daniel Gottlieb2019-11-261-2/+2
| | | | | | | | | | | | | | | | | Two concurrent storage transactions can now create collections with the same collection name. These transactions will conflict at commit time; the first committer will win and register their collection into the global catalog. The losing transactions will bubble a WriteConflictException. Top-level callers that should fail if the collection already existed must now check and fail with a NamespaceExists error code. Previously, those callers could rely on lower level code returning the NamespaceExists error. Callers that were implicitly creating a collection may retry the operation, using the now-registered collection. These transaction-local collections (UncommittedCollections) are returned when doing any CollectionCatalog::lookup* call.
* SERVER-43642 IndexBuildsCoordinator::createIndexes() accepts index constraintsBenety Goh2019-11-201-2/+3
| | | | make IndexBuildsCoordinator::updateCurOpOpDescription() public
* SERVER-43697 build system indexes for auth using IndexBuildsCoordinator ↵Benety Goh2019-11-051-75/+14
| | | | index helpers
* SERVER-43323 All replicated index builds should write startIndexBuildLouis Williams2019-09-301-2/+25
| | | | | | | and commitIndexBuild oplog entries This emits the two-phase oplog entries in cloner.cpp, system_index.cpp and index_builder.cpp.
* SERVER-41496 Remove Database::getCollection() and replace with ↵Evgeni Dobranov2019-09-301-2/+3
| | | | CollectionCatalog::get().lookupCollectionByNamespace()
* SERVER-41696 Remove the 'ns' field from index specsGregory Wlodarek2019-07-291-13/+9
|
* SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.12019-07-271-10/+6
|
* SERVER-42280 add db name argument to ↵Benety Goh2019-07-191-0/+1
| | | | | | | IndexBuildsCoordinator::startIndexBuild() and _registerAndSetUpIndexBuild() This sets ReplIndexBuildState::dbName using the db name provided to startIndexBuild() rather than deriving from the CollectionCatalog lookup result.
* SERVER-42194 Make Collection always hold a UUID (rather than optional UUID)Xiangyu Yao2019-07-151-3/+3
|
* SERVER-37954 Thread commitQuorum through the createIndexes command into the ↵Gregory Wlodarek2019-02-221-2/+9
| | | | Coordinator
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-39068 Replicate startIndexBuild and commitIndexBuild oplog entriresLouis Williams2019-02-121-2/+2
|
* SERVER-39086 Refactor system_index.cpp to build indexes using the ↵Gregory Wlodarek2019-02-091-35/+45
| | | | IndexBuildsCoordinator during startup
* SERVER-38091 IndexCatalog iterators and accessors should return const entriesLouis Williams2018-12-191-2/+2
|
* SERVER-38330 merge MultiIndexBlock and MultiIndexBlockImplBenety Goh2018-12-101-2/+1
|
* SERVER-37763 MultiIndexBlock::commit() returns StatusBenety Goh2018-11-201-2/+2
| | | | This allows MultiIndexBlock to support aborting index builds.
* SERVER-37589 add library for MultiIndexBlockBenety Goh2018-10-261-2/+2
|
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-26/+28
|
* SERVER-36889 unshim MultiIndexBlockBenety Goh2018-10-121-2/+3
|
* SERVER-37563 Remove all usages of getGlobalAuthorizationManagerKaloian Manassiev2018-10-121-1/+0
|
* SERVER-36472 Convert OptionalCollectionUUID in OpObserver::onCreateIndex to ↵Gregory Wlodarek2018-09-071-2/+2
| | | | CollectionUUID
* SERVER-36224 Refactor Collection::updateDocument argsJustin Seyster2018-08-261-0/+1
| | | | | | | | | Previously, Collection::updateDocument expected to get a namespace and UUID from its OplogEntryUpdateArgs, but that is not necessary, because the collection already knows its own namespace and UUID. This caused a problem in DurableViewCatalogImpl::upsert(), which did not set the UUID value in the args, leading to oplog entries without their UUID value.
* SERVER-34414 Create system indexes using the normal index creation and ↵Matthew Russotto2018-07-031-7/+23
| | | | | | | replication process. Do not create them directly on secondaries. Do create oplog entries for index creation.
* SERVER-24635 replace references to fassertStatusOK with fassertBenety Goh2018-03-071-21/+21
|
* SERVER-33089 Do not regenerate auth indexes in queryable backup modeSpencer Jackson2018-02-051-0/+8
|
* SERVER-17846: Forbid $isolated outside of update/delete user operationsNick Zolnierz2017-10-231-5/+9
|
* SERVER-31184 Make servers automatically set up config.system.sessionssamantharitter2017-10-111-46/+0
|
* SERVER-31174 Move the sessions collection to config.system.sessionssamantharitter2017-09-251-58/+70
|
* Revert "SERVER-31174 Move the sessions collection to config.system.sessions"Ian Whalen2017-09-221-70/+58
| | | | This reverts commit ba1704f7cbc0b9a03a181df145f75f433a59b7df.
* SERVER-31174 Move the sessions collection to config.system.sessionssamantharitter2017-09-221-58/+70
|
* SERVER-29544 Remove deprecated macro calls.Ian Kuehne2017-07-031-6/+4
|
* SERVER-28344: Implement the admin.system.sessions collectionSpencer Jackson2017-06-201-0/+253