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

Eliminate warning MINOR

This commit is contained in:
Mathias Stearn 2009-10-15 10:22:16 -04:00
parent e3caa5ec46
commit d6a19bb42d

View File

@ -324,7 +324,7 @@ namespace QueryOptimizerTests {
client_.ensureIndex( ns(), key, false, name.c_str() ); client_.ensureIndex( ns(), key, false, name.c_str() );
NamespaceDetails *d = nsd(); NamespaceDetails *d = nsd();
for( int i = 0; i < d->nIndexes; ++i ) { for( int i = 0; i < d->nIndexes; ++i ) {
if ( d->indexes[ i ].indexName() == name || d->indexes[ i ].isIdIndex() && IndexDetails::isIdIndexPattern( key ) ) if ( d->indexes[ i ].indexName() == name || ( d->indexes[ i ].isIdIndex() && IndexDetails::isIdIndexPattern( key ) ) )
return &d->indexes[ i ]; return &d->indexes[ i ];
} }
assert( false ); assert( false );