summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context.h
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-60761 Move the global read-only flag to be an OperationContext functionGregory Wlodarek2022-04-221-0/+21
|
* SERVER-61934 Hold storage change lock while creating a new opCtx to prevent ↵Samy Lanka2022-01-101-0/+13
| | | | races with switching out the storage engine
* SERVER-57811 Create API to start storage with alternate locationMatthew Russotto2021-08-091-1/+14
|
* SERVER-52849: Protect stepUp from invalidated executor on shutdown in ↵Tyler Seip2021-05-281-0/+4
| | | | PrimaryOnlyService
* SERVER-53566: Protect ServiceContext from issuing duplicate operation IDsTyler Seip2021-03-221-10/+5
|
* SERVER-40811 make initializers throwyBilly Donahue2020-12-081-1/+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.
* Revert "SERVER-50867 Roll back ServiceStateMachine changes temporarily"Ben Caimano2020-12-031-6/+0
| | | | This reverts commit 575f370475bd31fc457a93a776061f1b80448028.
* SERVER-49072 Make ServiceExecutors into DecorationsReo Kimura2020-11-171-13/+0
|
* SERVER-48221 Shut down ftdc after storage engineGregory Wlodarek2020-11-131-2/+3
|
* SERVER-51165 SyncUnique Use atomic swap in setter, and AtomicWord<T*>Billy Donahue2020-10-021-5/+3
|
* SERVER-51165 faster ServiceContext getters via AtomicWordBilly Donahue2020-09-281-6/+22
|
* SERVER-51055 ServiceContext::SyncUnique to fix unique_ptr races.Billy Donahue2020-09-221-9/+44
| | | | | | | | | | - The generic template synchronized_value cannot predict the acquisition level of its instantiations or instances. Take a policy parameter to allow mutex details to be customized. - simplify synchronized_value implementation - merge const_update_guard with update_guard as 1 nested class - ServiceContext SyncUnique must use a raw mutex policy to avoid recursion when Latch Diagnostics accesses ServiceContext
* SERVER-50867 Roll back ServiceStateMachine changes temporarilyBen Caimano2020-09-141-0/+19
| | | | | | | This reverts these commits: b039b24746e1d1fb10a32e1ca4831423c01d4cd7: SERVER-48980 97e16187ff3065d242a61a52e7b6edd4d439fb30: SERVER-49072 0607a6c291bf4cf4580a4444d826ed3c3ac3df47: SERVER-49104
* SERVER-48980 Associate ServiceExecutors with ClientsBen Caimano2020-08-311-6/+0
|
* SERVER-49072 Make ServiceExecutors into DecorationsReo Kimura2020-08-141-13/+0
|
* SERVER-48312 Remove support for 'supportsDocLocking = false'Gregory Wlodarek2020-08-041-7/+0
|
* SERVER-47802 Destroy opCtx after responding to clientsAmirsaman Memaripour2020-05-141-0/+21
| | | | | Postpone destruction of opCtx until after responding to clients to reduce the cost of destroying opCtx on the critical execution path.
* SERVER-47429 Validate authenticationMechanisms server parameterMark Benvenuto2020-04-201-0/+17
|
* SERVER-44167 Added ability to kill operations by keyBen Caimano2019-12-311-2/+54
| | | | | | There are two patches here really. One of which makes killOp fast to use and visible. The other adds OperationKey to various places and maps it to an internal OpId.
* SERVER-45029 Add getCurrentServiceContext()Ben Caimano2019-12-131-0/+9
|
* SERVER-44155 Validate a subset of latches of all levelsRahul Sundararaman2019-12-091-1/+2
|
* SERVER-42967 SERVER-42895 SERVER-44086 Expand DiagnosticInfo hooks in ↵Ben Caimano2019-10-211-1/+1
| | | | | | | | | | | Interruptible and Mutex This commit: - Adds Listener hooks for Interruptible - Expands Listener hooks for Mutex - Updates the DiagnosticInfo and its tests to use the new hooks - Removes stacktracing pieces from DiagnosticInfo and its tests - Removes mongo::ConditionVariable entirely in favor of Interruptible
* SERVER-43823 Fail background validation if restartCatalog runs while ↵Gregory Wlodarek2019-10-071-0/+11
| | | | validate locks are yielded
* SERVER-42165 Replace uses of stdx::mutex with mongo::MutexBen Caimano2019-09-171-4/+6
|
* SERVER-39936 Use PeriodicRunner handles to simplify shutdown orderingBen Caimano2019-06-211-5/+5
|
* SERVER-39340 Remove `stdx/list.h`ADAM David Alan Martin2019-06-101-2/+2
|
* SERVER-39339 Remove `stdx/memory.h`ADAM David Alan Martin2019-06-101-1/+1
|
* SERVER-40357 expand all calls to MONGO_DISALLOW_COPYINGBilly Donahue2019-03-281-3/+4
| | | | | | | | | | | produced by: hits="$(git grep -n MONGO_DISALLOW_COPYING | cut -d: -f1 )" for f in "$hits"; do sed -i.orig ' s/^\( *\)MONGO_DISALLOW_COPYING(\(.*\));/\1\2(const \2\&) = delete;\n\1\2\& operator=(const \2\&) = delete;/; ' $f done
* SERVER-39279 Remove ServiceContext::waitForClientsToFinishLouis Williams2019-03-131-9/+0
|
* 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-39146 Refactor BatonJason Carey2019-02-051-0/+5
| | | | | Refactor the baton into regular and networking batons while also cleaning up the basic baton implementation.
* SERVER-34422-ThreadMetrics: ServerStatus now returns the number of active ↵Tyler Kaye2019-01-281-0/+5
| | | | client operations
* SERVER-36663 Prevent killOperation from running without lockJonathan Ma2019-01-241-3/+4
|
* SERVER-38511 Avoid killing read operations on stepdown, gated by new server ↵Suganthi Mani2019-01-231-6/+0
| | | | parameter “closeConnectionsOnStepdown”.
* SERVER-37270 Remove foreground index builds by defaultLouis Williams2019-01-171-0/+9
|
* SERVER-36644 remove AtomicWord typedefsBilly Donahue2019-01-071-1/+1
|
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-8/+10
|
* SERVER-36013 Remove isMMAPv1 predicates and resulting dead codeGeert Bosch2018-07-111-5/+0
|
* SERVER-35788 Fix `noexcept` qualification in `std::function`.ADAM David Alan Martin2018-06-261-3/+3
| | | | | C++17 treats `noexcept` as part of the type. C++17's `std::function` doesn't support such qualifications on the function's parameter type.
* SERVER-34798 Remove ServiceContext subclasses and use new ServiceContext in ↵Andy Schwerin2018-06-221-40/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | every unit test. This patch does several loosely related and surprisingly hard to separate things. 1.) Make the ServiceContext class final 2.) Create a mechanism, called ConstructorActions, for running methods on ServiceContexts immediately after they're built and immediately before they're destroyed. 3.) Introduce / improve test fixture base classes for tests, giving them fresh ServiceContext instances for each test case. There is one fixture for tests that need a storage engine and another for those that do not. 4.) Make several remaining global variables SC decorations in support of (3) 5.) Replace many MONGO_INITIALIZERS that access getGlobalServiceContext with the new constructor-actions system, which is needed for (3.) 6.) Fix up tests to use the fixtures from (3) and fix tests that silently used different service contexts in together in a technically illegal fashion that now breaks. 7.) Utilize (2) as necessary to simplify initialization of new ServiceContexts, simplifying the fixtures in (3).
* SERVER-34798 Move storage initialization behaviors out of ServiceContext ↵Andy Schwerin2018-05-051-66/+0
| | | | subclasses to new library.
* SERVER-34751 Replace getGlobalStorageEngine cals with getStorageEngine.Andy Schwerin2018-05-031-7/+0
|
* SERVER-34751 Move StorageEngine ownership to ServiceContext from subclassesAndy Schwerin2018-05-021-1/+20
|
* SERVER-33275 Remove `platform/unordered_`* headersADAM David Alan Martin2018-02-141-2/+2
| | | | | | These headers date from before C++11 support and the `::mongo::stdx::` namespace. They can be removed and uses of the names therein can be changed to `::mongo::stdx::unordered_`* forms.
* SERVER-29602 New OpObserverRegistry to allow multiple observersGeert Bosch2017-12-211-1/+2
| | | | Also removes sharding specific interfaces for OpObserver.
* SERVER-31316 Remove unused code and unnecessary inheritance in ↵Kaitlin Mahar2017-12-131-1/+0
| | | | KeysCollectionManager* classes
* SERVER-30977 add clusterTime to standalone replica setMisha Tyulenev2017-09-271-27/+0
|
* SERVER-31170 Cleanup bench_run.cppKaloian Manassiev2017-09-221-19/+26
|
* SERVER-29838 Implement basic adaptive ServiceExecutorJonathan Reams2017-08-021-1/+1
|
* SERVER-29402 Implement ServiceExecutor and fixed-size test executorJonathan Reams2017-07-141-0/+19
|