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:
parent
12cbfefae2
commit
1ef7155a4e
@ -53,6 +53,9 @@ namespace mongo {
|
||||
void setResultFlagsToOk() {
|
||||
_resultFlags() = ResultFlag_AwaitCapable;
|
||||
}
|
||||
void initializeResultFlags() {
|
||||
_resultFlags() = 0;
|
||||
}
|
||||
};
|
||||
#pragma pack()
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user