summaryrefslogtreecommitdiff
path: root/db/query.cpp
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2010-09-24 19:01:03 +0200
committerAntonin Kral <a.kral@bobek.cz>2010-09-24 19:01:03 +0200
commit0ad0c09511a04ebe837f2acb859d47f2aa4e038a (patch)
tree109babcb556f6c5884b77853120717f0617c7a1e /db/query.cpp
parent03e58f81cad8dd4cfcd1530f327116f0cff6ceb3 (diff)
Imported Upstream version 1.6.3
Diffstat (limited to 'db/query.cpp')
-rw-r--r--db/query.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/db/query.cpp b/db/query.cpp
index bfe845cd13a..5bd7b00ac2a 100644
--- a/db/query.cpp
+++ b/db/query.cpp
@@ -1044,14 +1044,13 @@ namespace mongo {
if ( moreClauses ) {
// this MultiCursor will use a dumb NoOp to advance(), so no need to specify mayYield
shared_ptr< Cursor > multi( new MultiCursor( mps, cursor, dqo.matcher(), dqo ) );
- cc = new ClientCursor(queryOptions, multi, ns);
+ cc = new ClientCursor(queryOptions, multi, ns, jsobj.getOwned());
} else {
cursor->setMatcher( dqo.matcher() );
- cc = new ClientCursor( queryOptions, cursor, ns );
+ cc = new ClientCursor( queryOptions, cursor, ns, jsobj.getOwned() );
}
cursorid = cc->cursorid;
- cc->query = jsobj.getOwned();
- DEV tlog() << "query has more, cursorid: " << cursorid << endl;
+ DEV tlog(2) << "query has more, cursorid: " << cursorid << endl;
cc->pos = n;
cc->pq = pq_shared;
cc->fields = pq.getFieldPtr();