summaryrefslogtreecommitdiff
path: root/src/mongo/db/ttl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-191-26/+28
|
* SERVER-34798 Remove ServiceContext subclasses and use new ServiceContext in ↵Henrik Edin2018-09-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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). (cherry picked from commit d520be0814492c262515cf0a5d62a127ace70dce) SERVER-35985 Destroy clients started in other threads. (cherry picked from commit 9a68eb0cc65a93233b4ff5746330f9eb77de9b90) SERVER-36258 Construct ServiceContext after mongo initializers complete. (cherry picked from commit bfe170e49b1dc10b2badde45bc13c057a2f8ab61) SERVER-36400 Explicitly destroy the client on exiting run() of each BackgroundJob (cherry picked from commit b079e4713d897b5541c2804386025817ec720800) SERVER-36351 Fix so ServiceContextMongoDTest removes the temp directory in its destructor. (cherry picked from commit 4c16f0f336f4db77034e8aa594bbd4a5bac3f40c) SERVER-36347 Fix parse_zone_info.py after ServiceContext refactor. (cherry picked from commit c9d4204b6243e5eee6fe0b5e2c34d02af9ac5edb)
* SERVER-34364 replace references to invariantOK with invariantBenety Goh2018-04-261-1/+1
|
* SERVER-29519 Remove getGlobalReplicationCoordinator. Replace when getting ↵Nick Zolnierz2018-03-021-1/+1
| | | | | | decoration through service context (global if needed). This reverts commit a8fddd07a740e959646995ef93139887b3b3eb5c.
* Revert "SERVER-29519 Remove getGlobalReplicationCoordinator. Replace when ↵Nick Zolnierz2018-03-021-1/+1
| | | | | | getting decoration through service context (global if needed)." This reverts commit 7d37a75df3f6035a7afcb51123b88f0e99308fc8.
* SERVER-29519 Remove getGlobalReplicationCoordinator. Replace when getting ↵Henrik Edin2018-03-021-1/+1
| | | | decoration through service context (global if needed).
* SERVER-32638 Rename interruptable to interruptibleLouis Williams2018-03-011-1/+1
|
* SERVER-32638: Allow lock acquisition to be interruptableLouis Williams2018-03-011-0/+1
|
* SERVER-33124 Remove mmapv1 dependency from embedded.Henrik Edin2018-02-081-1/+1
| | | | New shim libraries to check fsync write lock and repair database on mmapv1 to break dependency chain.
* SERVER-29519 Removed many usages of getGlobalReplicationCoordinatorHenrik Edin2018-01-221-3/+3
|
* SERVER-17414 Fix unreferenced local variable in catch exception specifiersMark Benvenuto2017-10-201-1/+1
|
* SERVER-29840 Add allowed features bitmask to MatchExpressionParser::parseTess Avitabile2017-08-251-3/+1
|
* SERVER-30353 Create an index observer to notify us of changes made to index ↵Gregory Wlodarek2017-08-091-0/+1
| | | | and document keys
* SERVER-29685 do not process ttl indexes on drop-pending collectionsBenety Goh2017-07-051-0/+3
|
* SERVER-25694 Eliminate race in PlanExecutor cleanup.Charlie Swanson2017-04-131-1/+1
| | | | | | | | | | | Ensures that a collection lock is held in at least MODE_IS while deregistering a PlanExecutor from the cursor manager. Introduces new PlanExecutor::dispose() and ClientCursor::dispose() methods that must be called before destruction of those classes, and ensures they are called before destruction. These calls will thread an OperationContext all the way through to DocumentSource::dispose() for each stage in a Pipeline, which will give DocumentSourceCursor a chance to acquire locks and deregister its PlanExecutor if necessary.
* SERVER-27727 Note location where thread is marked idleMathias Stearn2017-03-241-1/+1
|
* SERVER-27727 Hide idle threads in hang analyzer (extras)Mathias Stearn2017-03-241-1/+5
|
* SERVER-22541 Refactor RAII locking helpers.Charlie Swanson2017-03-151-1/+0
| | | | | | | | | Removes the class 'ScopedTransaction' and moves the responsibility of abandoning the snapshot onto the GlobalLock class. Also renames the AutoGetCollectionForRead class to AutoGetCollectionForReadCommand, and adds a new AutoGetCollectionForRead class. Unlike AutoGetCollectionForReadCommand, this new class will not update the namespace on the CurrentOp object, nor will it add an entry to Top.
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-071-13/+13
| | | | | | This commit is an automated rename of all whole word instances of txn, _txn, and txnPtr to opCtx, _opCtx, and opCtxPtr, respectively in all .cpp and .h files in src/mongo.
* SERVER-27914 Verify canAcceptWritesForDatabase() is called while the caller ↵Matthew Russotto2017-03-061-1/+1
| | | | | | holds the global lock This reverts commit 3e5314c3f2be49666ca5d7aa766c934ba7d6cbe9.
* Revert "SERVER-26965 Use RAII type for turning off replicated writes."Matthew Russotto2017-03-061-1/+1
| | | | This reverts commit befb3ab22daa1f6e0db54af4caa426cfca1b7cd2.
* SERVER-26965 Use RAII type for turning off replicated writes.Matthew Russotto2017-03-061-1/+1
|
* SERVER-27603 Rename mongo::inShutdown() to ↵Andy Schwerin2017-01-151-1/+1
| | | | | | | | | | | | | | | | | mongo::globalInShutdownDeprecated() for clarity. Calling this function is deprecated because modules that consult it cannot engage in an orderly, coordinated shutdown. Instead, such modules tend to just stop working at some point after mongo::shutdown() is invoked, without regard to whether modules that depend on them have already shut down. As such, for clarity, this patch renames the function from mongo::inShutdown() to mongo::globalInShutdownDeprecated(). This also helps disambiguate calls to this function from calls to individual components' similarly named functions. Also, remove uncalled mongo::inShutdownStrict().
* SERVER-27591 Fix missing variable nameGeert Bosch2017-01-111-1/+1
|
* SERVER-27591 Abandon snapshot after scanning indexesGeert Bosch2017-01-061-0/+1
|
* SERVER-25932 Make MONGO_EXPORT_SERVER_PARAMETER use AtomicWord instead of ↵Mark Benvenuto2017-01-051-2/+2
| | | | std::atomic
* SERVER-26033 Allow simple range to exclude start keyJudah Schvimer2016-09-151-2/+1
|
* SERVER-10727 Clean TTL log lines and commentsKevin Albertson2016-08-021-29/+18
|
* SERVER-24239 Allow creation of indexes with the same key pattern.David Hatch2016-07-281-2/+3
|
* SERVER-24991 Redact streaming log messagesDan Pasette2016-07-201-1/+2
| | | | | | | | | | Covered files in src/mongo.. /executor /logger /platform /util /scripting /shell
* SERVER-24631: Add TTL collection namespace cacheKevin Albertson2016-07-191-91/+45
|
* SERVER-24118 Rename LiteParsedQuery to QueryRequest.David Hatch2016-06-031-3/+3
|
* SERVER-23971 Clang-Format codeMark Benvenuto2016-05-281-1/+1
|
* SERVER-24045 Refactor CanonicalQuery::canonicalize()Tess Avitabile2016-05-101-2/+4
|
* SERVER-23610 CanonicalQuery should own a CollatorInterfaceTess Avitabile2016-05-051-1/+1
|
* SERVER-23779 Replace direct instantiation of OperationContextImpl with ↵Andy Schwerin2016-04-201-2/+2
| | | | | | | cc().makeOperationContext(). Also, make OperationContextImpl's constructor private so that it can only be constructed via a Client.
* Revert "SERVER-23779 Replace direct instantiation of OperationContextImpl ↵Eric Milkie2016-04-191-2/+2
| | | | | | with cc().makeOperationContext()." This reverts commit 0ab34aa7b9c3c48ea6cf17888620fca455284d35.
* SERVER-23779 Replace direct instantiation of OperationContextImpl with ↵Andy Schwerin2016-04-181-2/+2
| | | | | | | cc().makeOperationContext(). Also, make OperationContextImpl's constructor private so that it can only be constructed via a Client.
* SERVER-21407 explicitly disallow $text/$where extensions during ↵David Storch2015-12-221-1/+3
| | | | MatchExpression parsing
* SERVER-20622 Global TTLMonitor obj should be reachable at process exitJason Rassi2015-09-241-2/+9
|
* SERVER-19466 TTLMonitor::doTTLForIndex() use IXSCAN => FETCH => DELETEQingyang Chen2015-08-131-94/+81
|
* SERVER-17364 Don't stash RecoveryUnits across getMoresMathias Stearn2015-07-161-1/+1
| | | | | | | We now tell PlanExecutors to detach from their OperationContexts and to shed all storage engine resources before stashing the ClientCursor. This is a heavier weight operation than a normal save/restoreState which is no longer allowed to change the OperationContext.
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-240/+224
|
* SERVER-18807 modified ReplicationCoordinator::canAcceptWritesForDatabases to ↵Benety Goh2015-06-091-2/+4
| | | | accept a namespace instead of a database name
* SERVER-2454 Improve PlanExecutor::DEAD handlingJames Wahlin2015-06-091-3/+5
|
* SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent ↵Andy Schwerin2015-05-131-3/+4
| | | | | | | | stdx::chrono types. Also introduces operators for adding stdx::chrono::duration to Date_t, subtracting two Date_ts to get Milliseconds, and remove the use of reinterpret_cast from the implementation of BSON Timestamp type.
* Revert "SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent ↵Andy Schwerin2015-05-121-4/+3
| | | | | | | | stdx::chrono types." This reverts commit 9aac625685811873ffbc2d3e8d09531eff1ce10e. Committed in error.
* SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent ↵Andy Schwerin2015-05-121-3/+4
| | | | | | | | stdx::chrono types. Also introduces operators for adding stdx::chrono::duration to Date_t, subtracting two Date_ts to get Milliseconds, and remove the use of reinterpret_cast from the implementation of BSON Timestamp type.
* SERVER-17984 doTTLForIndex() delete with manual index scanJason Rassi2015-05-071-34/+93
|
* SERVER-17817 Make AuthorizationSession a decoration of ClientBasic.Andy Schwerin2015-04-161-1/+1
|