summaryrefslogtreecommitdiff
path: root/src/mongo/db/db_raii.h
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-42737 Make secondary reads in ShardServerCatalogCacheLoader block ↵Randolph Tan2019-10-241-0/+15
| | | | | | behind the PBW lock (cherry picked from commit e0f6fdab23da872d9cf8a93b88c2332ba45041c0)
* SERVER-31098 Wrong ns in system.profile for aggregation queryDevin Hilly2019-02-061-7/+22
| | | | (cherry picked from commit 1862b00862a6ea9c3fdd08bba52ea6a016eccbc5)
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-191-8/+10
|
* SERVER-34572 Write commands in transactions must check for pending catalog ↵Tess Avitabile2018-04-301-3/+2
| | | | changes
* SERVER-34565 oplog reads on secondaries should read at lastApplied timestampEric Milkie2018-04-201-5/+6
|
* SERVER-34192 Allow secondary reads during batch applicationsLouis Williams2018-04-131-0/+19
|
* SERVER-33336 Snapshot reads should not take MODE_IX locks when autocommit=trueTess Avitabile2018-03-021-1/+1
|
* SERVER-32367 Clean up the AutoGet* suite of classesKaloian Manassiev2018-02-141-129/+64
| | | | | | * Get rid of AutoGetCollectionOrViewForReadCommand * Get rid of constructors accepting Lock::DBLock * Always check for shard version, unless the namespace represents a view
* SERVER-33143 Hold MODE_IX locks for readConcern level snapshot readsJames Wahlin2018-02-121-0/+6
|
* SERVER-32682 Use deadline-oriented mechanism for lock timeoutXiangyu Yao2018-02-091-17/+15
|
* SERVER-32682 Allow AutoGet helpers to specify lock timeoutXiangyu Yao2018-02-091-14/+33
|
* SERVER-32367 Pull UUID and view resolution out of db_raiiKaloian Manassiev2018-02-021-22/+5
|
* SERVER-32367 Make the Command::parseNs* methods take StringDataKaloian Manassiev2018-02-021-2/+3
|
* SERVER-29909 Remove unnecessary class friendship declarationsKaloian Manassiev2017-12-181-4/+0
|
* SERVER-29909 Remove circular dependency between db_raii and sharding librariesKaloian Manassiev2017-12-161-187/+1
|
* SERVER-31447 Use correct collation for update lookupCharlie Swanson2017-11-151-0/+2
|
* Revert "SERVER-31447 Use correct collation for update lookup"Max Hirschhorn2017-11-141-2/+0
| | | | This reverts commit de0b16077945eb6b6ec161b99f41c3222aade3b8.
* SERVER-31447 Use correct collation for update lookupCharlie Swanson2017-11-141-0/+2
|
* SERVER-30591 Do changeStream lookups by UUID instead of namespace.Siyuan Zhou2017-09-151-0/+16
|
* SERVER-29839 Protect from mid-command renames in parseNsOrUUIDMaria van Keulen2017-08-301-0/+24
|
* SERVER-29417 Attach logical session ids to cursorssamantharitter2017-06-151-0/+43
|
* Revert "SERVER-29417 Attach logical session ids to cursors"Max Hirschhorn2017-06-151-43/+0
| | | | This reverts commit 65828661c6579989fdbb43f2c21de16f2bf72586.
* SERVER-29304 Exclude time spent blocking for awaitData from getMore latency ↵David Storch2017-06-141-1/+0
| | | | | | | | | | | | | | | | | | reporting. This change applies to various server diagnostics which include latency metrics: the slow query logs, the system.profile collection, top, global operation latency stats, and per-collection operation latency stats. The secs_running and microsecs_running fields reported in currentOp output, on the other hand, will include time spent blocking for awaitData. Furthermore, this change fixes the following: - getMore operations are no longer double-counted. - Lock acquisition times are now consistently included. This fixes a bug in which time spent acquiring locks was accidentally omitted in some cases.
* SERVER-29417 Attach logical session ids to cursorssamantharitter2017-06-141-0/+43
|
* SERVER-28543 Add OperationContext as an argument to getCollectionMaria van Keulen2017-04-061-1/+1
|
* SERVER-22541 Manage aggregation cursors on global cursor manager.Charlie Swanson2017-03-151-11/+37
| | | | | | Moves registration of aggregation cursors to the global cursor manager. This simplifies the logic for acquiring locks and resolving view namespaces within the getMore and killCursors commands.
* SERVER-22541 Refactor RAII locking helpers.Charlie Swanson2017-03-151-20/+87
| | | | | | | | | 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-16/+19
| | | | | | 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-27306 Remove AutoGetCollection methods with std::string namespaceJames Wahlin2016-12-191-7/+0
|
* SERVER-25681 fix ViewCatalog reload raceKyle Suarez2016-08-191-2/+2
| | | | | | Changes ViewCatalog::lookup() to return a shared_ptr<ViewDefinition> rather than a bare pointer, allowing the view definitions to persist even if the ViewCatalog is reloaded.
* SERVER-24766 implement basic views libraryKyle Suarez2016-07-071-5/+73
| | | | | | | | Adds the basic infrastructure for read-only non-materialized views, as well as the ability to create them (but not use them). Views are disabled by default unless mongod is given the setParameter enableViews=1.
* SERVER-22359 Move ensureShardVersionOkOrThrow to CollectionShardingStateKaloian Manassiev2016-03-101-1/+6
| | | | | This ensures that we will have assertions in place for the correct locks being held.
* SERVER-22972 Remove usages of OldClientContext which reference databaseKaloian Manassiev2016-03-081-3/+0
| | | | | | Some of these are doing shard version checking against the name of the database, which is useless and breaks sharding assertions, which we are about to add.
* SERVER-13339 Remove unused constructor of OldClientContextKaloian Manassiev2015-10-071-7/+0
|
* SERVER-20052 yield when waiting/blocking for read committedEric Milkie2015-08-311-3/+4
|
* SERVER-19855 Do not perform shard version checking where not necessarySpencer T Brody2015-08-251-8/+34
| | | | This reverts commit 045cd1070cae1e7827255850c2fe35194e48b24e.
* Revert "SERVER-19855 Do not perform shard version checking where not necessary"Benety Goh2015-08-211-34/+8
| | | | This reverts commit 31716d2ae526d82d7d36464f6c9fae8b9f38542f.
* SERVER-19855 Do not perform shard version checking where not necessaryKaloian Manassiev2015-08-211-8/+34
| | | | | | | | | | | The code in RangeDeleter and sharding migration and split uses AutoGetCollectionForRead, which has the side effect of checking for shard version, based on the context. This causes problems in the cases where we are transmitting shard version information as part of the context, in particular during the migration cases. This change gets rid of these checks and replaces them with plain lock retrieval.
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-145/+156
|
* SERVER-17758 Move AutoGet* and Client::*Context to their own file.Andy Schwerin2015-03-271-0/+202
The new file is mongo/db/db_raii.h. Also, Client::Context is now OldClientContext and Client::WriteContext is OldClientWriteContext.