0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00

some more cleaning

This commit is contained in:
Eliot Horowitz 2010-02-15 23:55:41 -05:00
parent 43499d2457
commit cfec75960b
2 changed files with 2 additions and 4 deletions

View File

@ -474,9 +474,7 @@ namespace mongo {
findingStart_( (queryOptions & QueryOption_OplogReplay) != 0 ),
findingStartCursor_(),
findingStartMode_()
{
uassert( 10105 , "bad skip value in query", ntoskip >= 0);
}
{}
virtual void init() {
b_.skip( sizeof( QueryResult ) );
@ -779,7 +777,6 @@ namespace mongo {
BSONObj min = pq.getMin();
BSONObj max = pq.getMax();
bool explain = pq.isExplain();
//bool _gotquery = false;
bool snapshot = pq.isSnapshot();
BSONObj query = pq.getFilter();
BSONObj order = pq.getOrder();

View File

@ -181,6 +181,7 @@ namespace mongo {
private:
void init( const BSONObj& q ){
_reset();
uassert( 10105 , "bad skip value in query", _ntoskip >= 0);
if ( _ntoreturn < 0 ){
/* _ntoreturn greater than zero is simply a hint on how many objects to send back per