From 1d87ecfb110bbf306ca6fe4fcce970e08cd5d2de Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Mon, 23 Feb 2009 17:08:34 -0500 Subject: [PATCH] fix nReturned on replyToQuery --- db/dbmessage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/dbmessage.h b/db/dbmessage.h index e887e567ece..85048a0a520 100644 --- a/db/dbmessage.h +++ b/db/dbmessage.h @@ -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