summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/query_stage_near.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-06-22 16:37:08 -0400
committerDavid Storch <david.storch@10gen.com>2015-07-01 14:42:17 -0400
commit820289c3c4244666e1829732150d842af775e56d (patch)
tree9844ae54f597514bd8fb49b9fe04831ae700770f /src/mongo/dbtests/query_stage_near.cpp
parent4f4e36b69bfd6ea8615e2c0786a4d1dbca502a74 (diff)
downloadmongo-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.cpp2
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;
}