0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-2552 initialize result flags for empty get more result

This commit is contained in:
Aaron 2011-03-17 14:31:16 -07:00
parent 12cbfefae2
commit 1ef7155a4e
2 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,9 @@ namespace mongo {
void setResultFlagsToOk() {
_resultFlags() = ResultFlag_AwaitCapable;
}
void initializeResultFlags() {
_resultFlags() = 0;
}
};
#pragma pack()

View File

@ -274,6 +274,7 @@ namespace mongo {
qr->startingFrom = 0;
qr->len = b.len();
qr->setOperation(opReply);
qr->initializeResultFlags();
qr->nReturned = 0;
b.decouple();
return qr;