summaryrefslogtreecommitdiff
path: root/src/mongo/db/query
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-28819 fix typo in PlanExecutor invariantDavid Storch2017-04-171-1/+1
|
* SERVER-28657 Resolve missing edges and repair depsADAM David Alan Martin2017-04-141-4/+6
| | | | | | | | | | | | A number of edges can now be resolved. A few libraries were made fully resolved by breaking the few TUs that depend upon cycles into their own sub-libraries. This should help prevent the appearance of hidden cycles, as we progress towards a cycle-free graph. One library was missed as a cyclical-dependant of catalog in the graph rotation of `catalog` to resolved. This library was cut from `catalog` to present remainging hidden cycles into `catalog`.
* SERVER-25694 Eliminate race in PlanExecutor cleanup.Charlie Swanson2017-04-1310-388/+418
| | | | | | | | | | | 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-28507 Centralize ignored fields in command implementationsMathias Stearn2017-04-123-41/+43
|
* SERVER-28040 Fix maxTimeMS/readPref/readConcern for sharded view queryJames Wahlin2017-04-059-57/+382
|
* SERVER-28478 Create ArrayFilter class and implement parsing of arrayFilters ↵Tess Avitabile2017-04-043-0/+97
| | | | in ParsedUpdate
* SERVER-28211 added InternalPlanner::updateWithIdHack()Benety Goh2017-04-033-5/+40
|
* SERVER-9609 Ensure users can only call getMore on cursors they createdTess Avitabile2017-03-221-0/+12
|
* SERVER-28425 fix QueryPlannerAccess invariantDavid Storch2017-03-221-1/+1
|
* SERVER-26113 explain() for aggregation request does not propogate to ↵Nick Zolnierz2017-03-211-5/+4
| | | | | | | | | | | | corresponding 'QueryRequest' Small change to bug fix, and adding explain.js test. Formatting changes Missed formatting Incorporating CR feedback
* 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-28314 Remove unused PlanCache::_writeOperations memberGeert Bosch2017-03-162-5/+0
|
* SERVER-22541 Manage aggregation cursors on global cursor manager.Charlie Swanson2017-03-159-120/+104
| | | | | | 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-28128 Add support for a "comment" parameter to the aggregate...Bernard Gorman2017-03-152-6/+10
| | | ... command
* SERVER-19758 add support for "executionStats" and "allPlansExecution" to agg ↵David Storch2017-03-1315-219/+362
| | | | | | | | | | | | | | | | | 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-27975 Remove many uses of `OwnedPointerVector`ADAM David Alan Martin2017-03-108-33/+50
| | | | | This removes many of the remaining uses of the deprecated `OwnedPointerVector` type.
* SERVER-27938 Fix compile issues and typos in txn to opCtx renameMaria van Keulen2017-03-073-13/+7
|
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-0723-304/+312
| | | | | | 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-062-4/+5
| | | | | | holds the global lock This reverts commit 3e5314c3f2be49666ca5d7aa766c934ba7d6cbe9.
* Revert "SERVER-26965 Use RAII type for turning off replicated writes."Matthew Russotto2017-03-062-5/+4
| | | | This reverts commit befb3ab22daa1f6e0db54af4caa426cfca1b7cd2.
* SERVER-26965 Use RAII type for turning off replicated writes.Matthew Russotto2017-03-062-4/+5
|
* SERVER-18410: Replace RWLock with OperationContext/LockManagerDaniel Gottlieb2017-03-021-1/+1
|
* SERVER-27904 Extend support for moving predicates into contained ORs to ↵Tess Avitabile2017-02-288-313/+948
| | | | multikey indexes
* revert "SERVER-18410: Replace RWLock with OperationContext/LockManager"Daniel Gottlieb2017-02-261-1/+1
| | | | This reverts commit 9c9bbf3318113cfdd4d9b72f493b6ebd23f1837e.
* SERVER-2104 add support for covered projections with dotted field pathsDavid Storch2017-02-246-28/+26
| | | | | | For example, suppose you have index {"a.b": 1}. The projection {_id: 0, "a.b": 1} will now result in a covered plan when this index is used.
* SERVER-18410: Replace RWLock with OperationContext/LockManagerDaniel Gottlieb2017-02-241-1/+1
|
* SERVER-13732 Index access plan for contained OR should consider top-level ↵Tess Avitabile2017-02-1713-107/+1598
| | | | predicates
* SERVER-27644 $unwind arrays when performing distinct on a viewKyle Suarez2017-02-072-1/+26
|
* SERVER-27920 Fix incorrect locking of Client contextGeert Bosch2017-02-061-1/+1
|
* SERVER-27848 Add index hint to aggregation and non-materialized viewsJames Wahlin2017-02-036-22/+58
|
* SERVER-27438 Prevent mongos from dropping legacy $comment meta-operatorBernard Gorman2017-01-183-2/+59
| | | | | | Closes #1135 Signed-off-by: James Wahlin <james.wahlin@10gen.com>
* Revert "SERVER-27438 Prevent mongos from dropping legacy $comment meta-operator"Mathias Stearn2017-01-183-59/+2
| | | | This reverts commit 0eeb9396ff46269c2181e5d4aeab629863d875d4.
* SERVER-27438 Prevent mongos from dropping legacy $comment meta-operatorBernard Gorman2017-01-183-2/+59
| | | | | | Closes #1135 Signed-off-by: James Wahlin <james.wahlin@10gen.com>
* SERVER-27709 Remove cycles & change incomplete tagADAM David Alan Martin2017-01-171-4/+9
| | | | | | | Allow `incomplete` for the time being to prevent breaking code in enterprise. The cycle/incomplete exemption has been renamed to `illegal_cyclic_or_unresolved_dependencies_whitelisted`, to discourage overuse. Removed the incompletes that we can.
* SERVER-24027 Planner should consider reversing index scan direction in order ↵Tess Avitabile2017-01-133-55/+154
| | | | to obtain a SORT_MERGE plan
* SERVER-24623 Remove single document aggregation result optionTess Avitabile2017-01-133-12/+8
|
* SERVER-3173 use path-level multikey metadata to generate covered plans if ↵David Storch2017-01-133-6/+114
| | | | | | | possible This allows queries using a multikey index which project out the array fields to avoid collection access.
* SERVER-27586 Add some missing edges to build graphADAM David Alan Martin2017-01-051-3/+4
| | | | | This also remove an incompletes tag on libraries which are now fully resolved.
* SERVER-25932 Make MONGO_EXPORT_SERVER_PARAMETER use AtomicWord instead of ↵Mark Benvenuto2017-01-0516-69/+66
| | | | std::atomic
* SERVER-27497 Scope SCons Environment changes narrowlyAndrew Morrow2017-01-031-0/+5
|
* SERVER-27175 Improve performance of planSummary string generationJames Wahlin2016-12-271-13/+21
|
* SERVER-27406 Reduce DocumentSourceCursor batch size from 16MB to 4MBJames Wahlin2016-12-272-0/+4
|
* SERVER-24128 reject embedded null bytes in namespace string parsingDavid Storch2016-12-093-14/+11
|
* SERVER-26960 don't convert find to aggregation if sort contains $naturalKyle Suarez2016-12-091-1/+9
|
* SERVER-27300 fail indexing of the Symbol type when the collation is non-simpleDavid Storch2016-12-082-0/+49
|
* SERVER-27300 delete dead function shouldUseCollationIndexKey()David Storch2016-12-073-33/+12
|
* SERVER-27197 fix BSONType::Code comparison to not use collatorDavid Storch2016-12-061-0/+103
|