summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/text_or.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-43821 Make PlanStage and PlanExecutor return errors by throwingDavid Storch2020-05-291-13/+0
| | | | | | | | This eliminates the need for the FAILURE status codes in PlanStage and PlanExecutor, and brings query execution's error reporting more in line with that of the rest of the server. It also makes it easier for future implementations of PlanExecutor to comply with the interface.
* SERVER-45406 Plumb ExpressionContext through PlanStageIan Boros2020-02-281-6/+5
| | | | This patch includes also moves ownership of the collator to the ExpressionContext.
* SERVER-40620 uassert and log when fetching dangling index entryJustin Seyster2020-01-171-1/+2
| | | | | | | | | | | | If a FETCH_STAGE encounters a record id that does not reference any existing documents, that means either the document was deleted since query execution encountered the index entry or their is corruption somewhere. If the snapshot id indicates that the query has not yielded since the time that the index entry was loaded, that leaves corruption as the only possibility. We return and error and write to the log with instructions on how to address potentially inconsistent data. create mode 100644 jstests/noPassthrough/query_yields_catch_index_corruption.js
* SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.12019-07-271-1/+1
|
* SERVER-42288 Consolidate Document and WorkingSetMember metadata implementations.David Storch2019-07-261-3/+2
|
* SERVER-39339 Remove `stdx/memory.h`ADAM David Alan Martin2019-06-101-4/+3
|
* SERVER-40476 remove mongoutils::strBilly Donahue2019-04-091-1/+1
| | | | | | Rename utils/mongoutils/str.h => utils/str.h Rename namespace mongoutils::str => str Rename mongo::strcasecmp => str::caseInsensitiveCompare.
* 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-37448 Make remaining PlanStages check catalog validity on restore.David Storch2018-11-271-9/+6
| | | | Handles COUNT_SCAN, DISTINCT_SCAN, IDHACK, and TEXT_OR.
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-8/+10
|
* SERVER-16857 Delete MMAPv1 diskloc invalidations.David Storch2018-08-291-11/+0
| | | | | | - Removes of PlanStage::invalidate(). - Removes RecordCursor::invalidate() from the storage API. - Removes CursorManager::invalidateDocument().
* SERVER-34307 replace invariant(false) with MONGO_UNREACHABLEBenety Goh2018-04-041-1/+1
|
* SERVER-26833 Non-blocking text queries when projection ignores score.Justin Seyster2017-10-191-122/+24
| | | | | | | | | | | | | | | | | | With this change, text queries use the non-blocking OR stage in place of the blocking TEXT_OR stage when it is not necessary to compute the text score (because the projection does not call for it). We also removed the unnecessary MatchableTextDocument object with this change. This object was used in the TEXT_OR stage to apply a filter to index entries. The query planner adds search predicates as a filter in the OR/TEXT_OR stage when they can be covered by the index, allowing them to get filtered out before the full document need be examined However, the OR stage uses an IndexMatchableDocument which does almost the same thing. The only difference is that TextMatchableDocument will fetch documents if the index does not cover the filter. Since that should never happen (if the query planner is doing its job right), we shouldn't need TextMatchableDocument.
* SERVER-28752 Get rid of BatchedInsertRequest::getIndexTargetingNSKaloian Manassiev2017-07-261-3/+3
| | | | In preparation for removing the Batched Insert/Update/Delete Request parser classes.
* SERVER-27938 Rename all OperationContext variables to opCtxMaria van Keulen2017-03-071-7/+7
| | | | | | 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-22833 Rename MatchExpression::toBSON() to serialize(), and ensure it ↵Benjamin Murphy2016-03-141-1/+1
| | | | produces parseable output.
* SERVER-18826 Rename WorkingSet State Names from LOC to RIDJames Wahlin2016-02-051-3/+3
| | | | | | Also renamed: * WorkingSetMember::hasLoc() -> WorkingSetMember::hasRecordId * WorkingSetMember::loc -> WorkingSetMember::recordId
* SERVER-19377 PlanStage: make work() non-virt, add virt method doWork()Jason Rassi2016-01-141-21/+1
| | | | | Changes PlanStage::work() to be non-virtual. PlanStage::work() now updates _commonStats and calls new pure virtual method doWork().
* SERVER-21690 TextOrStage should fetch doc when RecordId first observedJason Rassi2015-12-011-22/+37
|
* SERVER-20111 Plan summary should only include the winning planCharlie Swanson2015-10-081-2/+2
|
* SERVER-19708: Move RecordCursor::seekExact to derived SeekableRecordStore classGeert Bosch2015-08-281-2/+2
|
* SERVER-16444 Only make BSONObj underlying WSM owned if not mmapv1.Max Hirschhorn2015-08-271-2/+2
| | | | | | | | | | Resolves the performance regression with mmapv1 introduced by 764e0c4 where documents were being copied in PlanStages that perform invalidations. Partially reverted changes to DeleteStage and UpdateStage because the document to return is not guaranteed to be owned after makeObjOwnedIfNeeded() is called when running with mmapv1.
* SERVER-16444 Copy data in the query subsystem as needed.Max Hirschhorn2015-08-241-1/+4
| | | | | | | | | | | A WorkingSetMember in the LOC_AND_OBJ state must be made owned when: 1. Its WorkingSetID is cached across multiple calls to work(). 2. Multiple calls to next(), seekExact(), saveState(), etc. are performed on the same WiredTiger cursor in a single work() call. No longer necessary to always copy data out of WiredTiger buffers.
* SERVER-19364 move query stage OperationContext pointer management into the ↵Qingyang Chen2015-08-041-10/+10
| | | | base class
* SERVER-19456 Use final designators where appropriate in PlanStagesMathias Stearn2015-07-231-2/+2
|
* SERVER-17364 Don't stash RecoveryUnits across getMoresMathias Stearn2015-07-161-5/+15
| | | | | | | 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-17364 Unify handling of child stages into PlanStage base classMathias Stearn2015-07-161-36/+5
| | | | This is prep for adding more methods that need to propagate to children.
* SERVER-19109 Refactor text stage into matcher and scorer stageAdam Chelminski2015-07-091-0/+450
Signed-off-by: Mark Benvenuto <mark.benvenuto@mongodb.com>