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:
parent
e3caa5ec46
commit
d6a19bb42d
@ -324,7 +324,7 @@ namespace QueryOptimizerTests {
|
||||
client_.ensureIndex( ns(), key, false, name.c_str() );
|
||||
NamespaceDetails *d = nsd();
|
||||
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 ];
|
||||
}
|
||||
assert( false );
|
||||
|
Loading…
Reference in New Issue
Block a user