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:
parent
43499d2457
commit
cfec75960b
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user