get if a cursor is a multi key

This commit is contained in:
Eliot Horowitz
2010-11-15 10:22:20 -05:00
parent b683f36c7d
commit 999ae13629
6 changed files with 19 additions and 0 deletions

View File

@@ -273,6 +273,14 @@ namespace mongo {
return false;
}
bool QueryPlanSet::hasMultiKey() const {
for( PlanSet::const_iterator i = _plans.begin(); i != _plans.end(); ++i )
if ( (*i)->isMultiKey() )
return true;
return false;
}
void QueryPlanSet::addHint( IndexDetails &id ) {
if ( !_min.isEmpty() || !_max.isEmpty() ) {
string errmsg;