From 3c5246b1fb2ec2f9c34ba1cb5083b2745d7bdf89 Mon Sep 17 00:00:00 2001 From: Greg Studer Date: Tue, 17 Jun 2014 19:22:05 -0400 Subject: SERVER-9986 refactor near search for 2D and S2 Adds progressive search functionality for $geoNear operations, allowing better integration with other cursors. --- src/mongo/db/query/query_solution.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mongo/db/query/query_solution.cpp') diff --git a/src/mongo/db/query/query_solution.cpp b/src/mongo/db/query/query_solution.cpp index e3fef1dead7..bcdc7d00a12 100644 --- a/src/mongo/db/query/query_solution.cpp +++ b/src/mongo/db/query/query_solution.cpp @@ -708,7 +708,8 @@ namespace mongo { copy->_sorts = this->_sorts; copy->nq = this->nq; - copy->numWanted = this->numWanted; + copy->baseBounds = this->baseBounds; + copy->numToReturn = this->numToReturn; copy->indexKeyPattern = this->indexKeyPattern; copy->addPointMeta = this->addPointMeta; copy->addDistMeta = this->addDistMeta; -- cgit v1.2.1