0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00

more debugging

This commit is contained in:
Eliot Horowitz 2010-06-03 10:02:38 -04:00
parent 7da988488b
commit 327ccee4ed

View File

@ -119,7 +119,11 @@ namespace mongo {
arrElt = e;
}
// enforce single array path here
uassert( 10088 , "cannot index parallel arrays", e.type() != Array || e.rawdata() == arrElt.rawdata() );
if ( e.type() == Array && e.rawdata() != arrElt.rawdata() ){
stringstream ss;
ss << "cannot index parallel arrays [" << e.fieldName() << "] [" << arrElt.fieldName() << "]";
uasserted( 10088 , ss.str() );
}
}
bool allFound = true; // have we found elements for all field names in the key spec?