Esempio n. 1
0
 /* empty result for error conditions */
 QueryResult* emptyMoreResult(long long cursorid) {
     BufBuilder b(32768);
     b.skip(sizeof(QueryResult));
     QueryResult *qr = (QueryResult *) b.buf();
     qr->cursorId = 0; // 0 indicates no more data to retrieve.
     qr->startingFrom = 0;
     qr->len = b.len();
     qr->setOperation(opReply);
     qr->initializeResultFlags();
     qr->nReturned = 0;
     b.decouple();
     return qr;
 }