summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/delete.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-23971 Clang-Format codeMark Benvenuto2016-05-281-1/+1
|
* SERVER-23271 Add keysInserted and keysDeleted metrics for CRUD opsJames Wahlin2016-04-211-1/+2
|
* Revert "SERVER-23271 Add keysInserted and keysDeleted metrics for CRUD ops"Benety Goh2016-04-211-2/+1
| | | | This reverts commit 6bbaee174447ee1c9177c72bdd07f050ab07e901.
* SERVER-23271 Add keysInserted and keysDeleted metrics for CRUD opsJames Wahlin2016-04-211-1/+2
|
* SERVER-22178 Move calls that cannot throw out of try/catch block.Charlie Swanson2016-03-251-1/+1
| | | | | | WorkingSetCommon::prepareForSnapshotChange shouldn't ever throw an exception, so it should be removed from the try/catch blocks in the delete and update stages.
* SERVER-22178 Always retry sorted findAndModify upon write conflict.Charlie Swanson2016-03-251-56/+69
| | | | | | | | | Previously, if there was a WriteConflictException while actually doing the update or delete, we would retry the findAndModify, but if the update or delete stage detected that the document was already deleted or that it no longer matched the predicate, it would not retry. This patch ensures the findAndModify will be retried in either of those scenarios.
* SERVER-22793 clear buffered WorkingSetIDs on storage engines without ↵David Storch2016-02-241-5/+1
| | | | | | | document-level concurrency This ensures that the set of WorkingSetIDs does not grow without bound on MMAPv1.
* SERVER-22531 use uassert instead of massert when stepping down during multi ↵Eric Milkie2016-02-091-1/+1
| | | | delete.
* SERVER-18826 Rename WorkingSet State Names from LOC to RIDJames Wahlin2016-02-051-6/+6
| | | | | | Also renamed: * WorkingSetMember::hasLoc() -> WorkingSetMember::hasRecordId * WorkingSetMember::loc -> WorkingSetMember::recordId
* SERVER-16097 invariant(_collection) in DeleteStage::doRestoreState().Max Hirschhorn2016-02-041-0/+1
| | | | A plan stage should only yield if the collection exists.
* SERVER-22002 Do not retry findAndModify on MMAPv1Charlie Swanson2016-01-211-10/+0
|
* SERVER-19377 PlanStage: make work() non-virt, add virt method doWork()Jason Rassi2016-01-141-16/+1
| | | | | Changes PlanStage::work() to be non-virtual. PlanStage::work() now updates _commonStats and calls new pure virtual method doWork().
* Revert "SERVER-22052 refactor Collection::deleteDocument to pass in the ↵Dianna Hohensee2016-01-061-1/+1
| | | | | | to-be-deleted document directly as a parameter." This reverts commit 3b29ba46f2d7ce938ea0f084b2d0cb46d46c651e.
* SERVER-22052 refactor Collection::deleteDocument to pass in the ↵Dianna Hohensee2016-01-051-1/+1
| | | | to-be-deleted document directly as a parameter.
* SERVER-21678 setting fromMigrate flag for deletes in oplogDianna Hohensee2016-01-041-1/+1
|
* SERVER-21434 Retry a findAndModify if it conflicts on an update or deleteCharlie Swanson2015-11-131-2/+19
|
* SERVER-19334: Refactor handling of status in delete stageGeert Bosch2015-10-161-116/+129
|
* SERVER-20111 Plan summary should only include the winning planCharlie Swanson2015-10-081-1/+1
|
* SERVER-20512 Remove invalid calls to makeObjOwnedIfNeeded().Max Hirschhorn2015-10-071-11/+4
| | | | | | | | | Don't try and make the object owned in DeleteStage if Collection::deleteDocument() throws a WriteConflictException because we would have already called saveState() on the child stage, which could have freed the memory underlying the WorkingSetMember. Similarly for UpdateStage with Collection::updateDocument().
* SERVER-19957 Transition to OWNED_OBJ state after performing the delete.Max Hirschhorn2015-09-081-3/+9
| | | | | | | Otherwise if a WriteConflictException were to occur during Collection::deleteDocument(), then a findAndModify operation with remove=true would not retry deleting that document because the associated WorkingSetMember no longer has a loc.
* SERVER-19708: Move RecordCursor::seekExact to derived SeekableRecordStore classGeert Bosch2015-08-281-1/+1
|
* SERVER-16444 Only make BSONObj underlying WSM owned if not mmapv1.Max Hirschhorn2015-08-271-2/+5
| | | | | | | | | | 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-5/+11
| | | | | | | | | | | 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-19838 Remove member DeleteStageParams::shouldCallLogOpJason Rassi2015-08-101-12/+2
|
* SERVER-19364 move query stage OperationContext pointer management into the ↵Qingyang Chen2015-08-041-11/+6
| | | | base class
* SERVER-17364 Don't stash RecoveryUnits across getMoresMathias Stearn2015-07-161-3/+6
| | | | | | | 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-37/+11
| | | | This is prep for adding more methods that need to propagate to children.
* SERVER-18961 avoid iterating the entire working set when preparing for a ↵David Storch2015-07-011-5/+5
| | | | | | | WiredTiger snapshot change Improves performance for query plans with a blocking stage when using the WiredTiger storage engine. In particular, full text search and geoNear queries should benefit.
* SERVER-16889.5 PlanExecutor::getStats() and PlanStage::getStats() return ↵Qingyang Chen2015-06-291-5/+7
| | | | unique_ptr
* SERVER-16889 Modernize getExecutor*(), PlanExecutor::make() signaturesQingyang Chen2015-06-261-4/+4
|
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-232/+229
|
* SERVER-17309 Replace std::auto_ptr<T> with std::unique_ptr<T>Andrew Morrow2015-06-101-2/+2
|
* SERVER-18807 modified ReplicationCoordinator::canAcceptWritesForDatabases to ↵Benety Goh2015-06-091-1/+1
| | | | accept a namespace instead of a database name
* SERVER-16444 New API for navigating RecordStoresMathias Stearn2015-06-091-1/+3
|
* SERVER-2454 Improve PlanExecutor::DEAD handlingJames Wahlin2015-06-091-2/+1
|
* SERVER-17633 add const qualifiers to PlanStage and Explain interfacesDavid Storch2015-04-171-2/+2
|
* SERVER-16063 Rewrite the findAndModify command.Charlie2015-04-141-5/+52
| | | | | | | | Changed UpdateStage to return the prior or newly-updated version of a document if request. also changed DeleteStage to return the deleted document if requested. Added explain support to the findAndModify command.
* SERVER-17573 move OpObserver calls into the datalayer as much as possible ↵matt dannenberg2015-04-091-14/+0
| | | | and eliminate repl bools
* SERVER-17878 Rename GlobalEnvironmentExperiment to ServiceContext.Andy Schwerin2015-04-031-2/+2
|
* SERVER-13896 Replace logOp() with a more operation-aware observer interfacematt dannenberg2015-03-111-4/+6
|
* SERVER-17062 rename NEED_FETCH to NEED_YIELDDavid Storch2015-02-161-6/+6
|
* SERVER-17062 Make query execution handle WriteConflictExceptions where possibleMathias Stearn2015-02-131-41/+74
|
* SERVER-17132 use snapshot id in DeleteStage, and re-check predicateDavid Storch2015-02-031-3/+12
|
* SERVER-17132: Added SnapshotId and Snapshotted and use them in query to make ↵Eliot Horowitz2015-02-021-2/+1
| | | | sure we use correct versions of docs
* SERVER-17132 Update and Delete stages need to forceFetchAllLocs after saveStateMathias Stearn2015-02-021-0/+5
|
* SERVER-16807 update and delete stages should skip over invalidated documents ↵David Storch2015-01-151-4/+8
| | | | (MMAP v1)
* SERVER-13256 Add usings and qualifications for names from namespace stdAndrew Morrow2015-01-151-0/+3
|
* SERVER-16764 Make ReplicationCoordinator file names match the type namesSpencer T Brody2015-01-121-1/+1
|
* SERVER-16675 force fetch RecordIds buffered by the query system on saveState()David Storch2015-01-071-0/+12
| | | | This fixes an issue with WiredTiger query isolation.
* SERVER-16101 replace DeleteExecutor with ParsedDeleteDavid Storch2014-12-041-0/+10
|