@@ -737,16 +737,6 @@ namespace mongo {
737737
738738 scanState->tightness = IndexBoundsBuilder::INEXACT_FETCH;
739739 mergeWithLeafNode (emChild, scanState);
740-
741- if (scanState->tightness == IndexBoundsBuilder::INEXACT_COVERED
742- && !indices[scanState->currentIndexNumber ].multikey ) {
743- // Add the filter to the current index scan. This is optional because
744- // the entire filter will get affixed to the parent AND. It is here
745- // as an optimization---an additional filter during the index scan
746- // stage will cause fewer documents to bubble up to the parent node
747- // of the execution tree.
748- addFilterToSolutionNode (scanState->currentScan .get (), emChild, root->matchType ());
749- }
750740 }
751741 else {
752742 if (NULL != scanState->currentScan .get ()) {
@@ -762,16 +752,6 @@ namespace mongo {
762752 scanState->currentScan .reset (makeLeafNode (query, indices[scanState->currentIndexNumber ],
763753 scanState->ixtag ->pos ,
764754 emChild, &scanState->tightness ));
765-
766- if (scanState->tightness == IndexBoundsBuilder::INEXACT_COVERED
767- && !indices[scanState->currentIndexNumber ].multikey ) {
768- // Add the filter to the current index scan. This is optional because
769- // the entire filter will get affixed to the parent AND. It is here
770- // as an optimization---an additional filter during the index scan
771- // stage will cause fewer documents to bubble up to the parent node
772- // of the execution tree.
773- addFilterToSolutionNode (scanState->currentScan .get (), emChild, root->matchType ());
774- }
775755 }
776756 }
777757
0 commit comments