mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
better check for dup plugin name
This commit is contained in:
parent
f3b6f4dd8d
commit
507389045b
@ -56,8 +56,8 @@ namespace mongo {
|
||||
if ( e.type() != String )
|
||||
continue;
|
||||
|
||||
uassert( 13007 , "can only have 1 index plugin / bad index key pattern" , pluginName.size() == 0 );
|
||||
pluginName = e.valuestr();
|
||||
uassert( 13007 , "can only have 1 index plugin / bad index key pattern" , pluginName.size() == 0 || pluginName == e.String() );
|
||||
pluginName = e.String();
|
||||
}
|
||||
|
||||
return pluginName;
|
||||
|
Loading…
Reference in New Issue
Block a user