summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/find.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-35031 Return MaxTimeMSExpired for maxTimeMS timeoutJames Wahlin2018-07-241-2/+3
| | | | | | Adds a new 'MaxTimeMSExpired' error code, returned when a timeout occurs due to exceeding of maxTimeMS. Timeouts unrelated to maxTimeMS will continue to return 'ExceededTimeLimit'.
* SERVER-35115 Separate dbclientinterface.h into several parts, one per class.Henrik Edin2018-06-291-1/+0
|
* SERVER-35275 rename fail point FP macros, improve docsBilly Donahue2018-05-301-1/+1
|
* SERVER-34443 Refactor WiredTigerRecoveryUnit and WiredTigerSnapshotManager. ↵Louis Williams2018-05-151-8/+5
| | | | An enum is now used to indicate at which time to read on a RecoveryUnit.
* SERVER-34714 Optimize $or with all always-false children to $alwaysFalseCharlie Swanson2018-05-011-8/+3
|
* SERVER-34307 replace invariant(false) with MONGO_UNREACHABLEBenety Goh2018-04-041-1/+1
|
* SERVER-30005: remove $isolated/$atomic optionNick Zolnierz2018-03-211-2/+1
|
* Revert "SERVER-30005: remove $isolated/$atomic option"Nick Zolnierz2018-03-201-1/+2
| | | | This reverts commit cd950b113ee0d00e88036b2fe6306866c7ba27f9.
* SERVER-30005: remove $isolated/$atomic optionNick Zolnierz2018-03-201-2/+1
|
* SERVER-31802 Rip out more dead master-slave code, and the related concept of ↵Andy Schwerin2018-03-151-39/+3
| | | | RID.
* SERVER-18094 Add 'localOps' parameter to $currentOp to show local mongoS ↵Bernard Gorman2018-03-151-2/+3
| | | | operations
* SERVER-33542 Avoid swallowing error codes from PlanExecutor errorsCharlie Swanson2018-03-121-1/+3
|
* SERVER-33609 Pass readConcernLevel to WiredTigerRecoveryUnitXiangyu Yao2018-03-091-3/+13
|
* SERVER-33541 Add readConcern level 'snapshot' support for aggregation.David Storch2018-03-091-2/+1
|
* 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-32367 Clean up the AutoGet* suite of classesKaloian Manassiev2018-02-141-11/+2
| | | | | | * Get rid of AutoGetCollectionOrViewForReadCommand * Get rid of constructors accepting Lock::DBLock * Always check for shard version, unless the namespace represents a view
* SERVER-32912 Ensure that killCursors always invalidates a pinned cursorBernard Gorman2018-02-131-8/+15
|
* SERVER-31293 Don't consider readPreference 'primary' as equivalent to ↵Bernard Gorman2018-01-251-3/+6
| | | | 'slaveOk' in OP_QUERY find path
* SERVER-31684 Fix unexpected "operation exceeded time limit" errorsMartin Neupauer2017-12-181-1/+3
| | | | | | The changestream queries used an operation context deadline to track a wait time before returning EOF. This occasionaly interfered with normal operation deadlines leading to unexpected errors.
* Revert "SERVER-31684 Fix unexpected "operation exceeded time limit" errors"Spencer Jackson2017-12-141-3/+1
| | | | This reverts commit b79e5f04ffc79b5892f89c22b9e5f26a297b1185.
* SERVER-31684 Fix unexpected "operation exceeded time limit" errorsMartin Neupauer2017-12-121-1/+3
| | | | | | The changestream queries used an operation context deadline to track a wait time before returning EOF. This occasionaly interfered with normal operation deadlines leading to unexpected errors.
* SERVER-31873 Make mongos retry findAndModify with txnNumberKaloian Manassiev2017-11-111-9/+6
|
* SERVER-17846: Forbid $isolated outside of update/delete user operationsNick Zolnierz2017-10-231-1/+2
|
* SERVER-30731 Add expr support in MatchExpression outside of aggregationTess Avitabile2017-10-051-2/+1
|
* SERVER-27892 Fix find and getMore commands to only check whether they can ↵Spencer T Brody2017-10-041-14/+18
| | | | run after acquiring locks
* SERVER-31117 pin can return unauthorizedJason Carey2017-09-201-1/+1
| | | | | Being too specific about pinCursor error code returns causes an unauthorized legacy getMore to invariant.
* SERVER-30410 Ensure executor is saved after tailable cursor time out.Charlie Swanson2017-08-281-14/+6
|
* SERVER-29840 Add allowed features bitmask to MatchExpressionParser::parseTess Avitabile2017-08-251-2/+8
|
* SERVER-29128 Fix performance regression on awaitData with ↵Matthew Russotto2017-07-171-0/+5
| | | | | | | | lastKnownCommittedOpTime Revert "Revert "SERVER-29128 Make $changeNotification stage return a tailable, awaitData cursor that continuously gives out oplog entries"" This reverts commit d29e92cffcb4db3cdd77b1e53d5d005db6cc309d.
* Revert "SERVER-29128 Make $changeNotification stage return a tailable, ↵Matthew Russotto2017-07-141-5/+0
| | | | | | awaitData cursor that continuously gives out oplog entries" This reverts commit 3bab15739e421e9eed4bf180cbcf5c7392a9a90d.
* SERVER-29128 Make $changeNotification stage return a tailable, awaitData ↵Matthew Russotto2017-07-111-0/+5
| | | | cursor that continuously gives out oplog entries
* SERVER-29711 Fix nullptr dereference in OP_GET_MORE view check.David Storch2017-06-191-1/+4
|
* SERVER-29304 Exclude time spent blocking for awaitData from getMore latency ↵David Storch2017-06-141-14/+25
| | | | | | | | | | | | | | | | | | 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-29327: Prevent DBDirectClient from storing MaxTimeMS on cursorsSpencer Jackson2017-06-051-6/+14
|
* SERVER-28575 Profile entry for update/delete should contain entire raw ↵Tess Avitabile2017-05-231-2/+2
| | | | update/delete
* SERVER-28327 Revamp cursor timeout logic.Charlie Swanson2017-05-031-3/+0
| | | | | | Instead of tracking the number of idle milliseconds, each ClientCursor tracks its last time of use. This also resolves related issues SERVER-28328 and SERVER-19892.
* SERVER-25694 Eliminate race in PlanExecutor cleanup.Charlie Swanson2017-04-131-16/+19
| | | | | | | | | | | 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-9609 Ensure users can only call getMore on cursors they createdTess Avitabile2017-03-221-0/+12
|
* Revert "SERVER-9609 Ensure users can only call getMore on cursors they created"Tess Avitabile2017-03-211-12/+0
| | | | This reverts commit 9e7974e4b6e2b3fe5e7741dce6549624113af196.
* SERVER-9609 Ensure users can only call getMore on cursors they createdTess Avitabile2017-03-171-0/+12
|
* SERVER-22541 Manage aggregation cursors on global cursor manager.Charlie Swanson2017-03-151-77/+54
| | | | | | 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-6/+6
| | | | | | | | | 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-19758 add support for "executionStats" and "allPlansExecution" to agg ↵David Storch2017-03-131-1/+2
| | | | | | | | | | | | | | | | | explain Like other explainable commands, aggregate can now be explained using the explain command, e.g. db.runCommand({explain: {aggregate: ...}, verbosity: "executionStats"}). The existing explain:true flag corresponds to "queryPlanner" mode and is still supported. However, explain:true cannot be specified when explaining aggregate via the explain command. Additional execution information is provided only in the $cursor section of the aggregation explain output. Having aggregation stages themselves track and report execution info is further work.
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-071-41/+42
| | | | | | 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-28196 Make legacy query and getMore appear in a consistent format ↵Bernard Gorman2017-03-071-4/+6
| | | | | | | | across currentOp, profiler and logs Closes #1139 Signed-off-by: David Storch <david.storch@10gen.com>
* SERVER-27914 Verify canAcceptWritesForDatabase() is called while the caller ↵Matthew Russotto2017-03-061-2/+3
| | | | | | holds the global lock This reverts commit 3e5314c3f2be49666ca5d7aa766c934ba7d6cbe9.
* Revert "SERVER-26965 Use RAII type for turning off replicated writes."Matthew Russotto2017-03-061-3/+2
| | | | This reverts commit befb3ab22daa1f6e0db54af4caa426cfca1b7cd2.
* SERVER-26965 Use RAII type for turning off replicated writes.Matthew Russotto2017-03-061-2/+3
|
* SERVER-27920 Fix incorrect locking of Client contextGeert Bosch2017-02-061-1/+1
|