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/dbtests/query_stage_near.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/dbtests/query_stage_near.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_near.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/query_stage_near.cpp b/src/mongo/dbtests/query_stage_near.cpp index f007cc6af9b..f7694d19018 100644 --- a/src/mongo/dbtests/query_stage_near.cpp +++ b/src/mongo/dbtests/query_stage_near.cpp @@ -72,8 +72,8 @@ public: *out = _workingSet->allocate(); WorkingSetMember* member = _workingSet->get(*out); - member->state = WorkingSetMember::OWNED_OBJ; member->obj = Snapshotted<BSONObj>(SnapshotId(), next); + member->transitionToOwnedObj(); return PlanStage::ADVANCED; } |