summaryrefslogtreecommitdiff
path: root/db/query.cpp
diff options
context:
space:
mode:
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();