diff options
author | David Storch <david.storch@10gen.com> | 2015-06-22 16:37:08 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2015-07-01 14:42:17 -0400 |
commit | 820289c3c4244666e1829732150d842af775e56d (patch) | |
tree | 9844ae54f597514bd8fb49b9fe04831ae700770f /src/mongo/db/exec/and_sorted.cpp | |
parent | 4f4e36b69bfd6ea8615e2c0786a4d1dbca502a74 (diff) | |
download | mongo-820289c3c4244666e1829732150d842af775e56d.tar.gz |
SERVER-18961 avoid iterating the entire working set when preparing for a 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.
Diffstat (limited to 'src/mongo/db/exec/and_sorted.cpp')
-rw-r--r-- | src/mongo/db/exec/and_sorted.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/and_sorted.cpp b/src/mongo/db/exec/and_sorted.cpp index 0d9beeea8bb..7186e694daa 100644 --- a/src/mongo/db/exec/and_sorted.cpp +++ b/src/mongo/db/exec/and_sorted.cpp @@ -180,7 +180,7 @@ PlanStage::StageState AndSortedStage::moveTowardTargetLoc(WorkingSetID* out) { // The front element has hit _targetLoc. Don't move it forward anymore/work on // another element. _workingTowardRep.pop(); - AndCommon::mergeFrom(_ws->get(_targetId), *member); + AndCommon::mergeFrom(_ws, _targetId, *member); _ws->free(id); if (0 == _workingTowardRep.size()) { |