0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
This commit is contained in:
Aaron 2010-05-13 00:23:41 -07:00
parent 512fdab98c
commit d72e26995e

View File

@ -563,11 +563,10 @@ namespace mongo {
_honorRecordedPlan( honorRecordedPlan ) {
// _fros( ns, query ) {
// eventually implement (some of?) these
log() << "_or?: " << _or << endl;
if ( !order.isEmpty() || ( hint && !hint->eoo() ) || !min.isEmpty() || !max.isEmpty() ) {
// current hint test prevents _or when doing a full query, which we want right now since we need to implement other stuff before turning that on
if ( !order.isEmpty() || ( hint /*&& !hint->eoo()*/ ) || !min.isEmpty() || !max.isEmpty() ) {
_or = false;
}
log() << "_or: " << _or << endl;
if ( !_or ) {
_currentQps.reset( new QueryPlanSet( ns, query, order, hint, honorRecordedPlan, min, max ) );
_n = 1; // only one run