mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-109 $or checkpoint
This commit is contained in:
parent
512fdab98c
commit
d72e26995e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user