fix nReturned on replyToQuery

This commit is contained in:
Eliot Horowitz
2009-02-23 17:08:34 -05:00
parent f447474a7a
commit 1d87ecfb11

View File

@@ -179,7 +179,7 @@ namespace mongo {
qr->setOperation(opReply);
qr->cursorId = cursorId;
qr->startingFrom = startingFrom;
qr->nReturned = 1;
qr->nReturned = nReturned;
b.decouple();
Message *resp = new Message();
resp->setData(qr, true); // transport will free