always choose table scan when no options specified

This commit is contained in:
Eliot Horowitz
2010-03-10 22:17:52 -05:00
parent 141a94b37a
commit 64cf3e2b14

View File

@@ -320,7 +320,12 @@ namespace mongo {
return;
}
}
if ( query_.isEmpty() && order_.isEmpty() ){
plans_.push_back( PlanPtr( new QueryPlan( d, -1, fbs_, order_ ) ) );
return;
}
if ( fbs_.getSpecial().size() ){
string special = fbs_.getSpecial();
NamespaceDetails::IndexIterator i = d->ii();