0
0
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:
Eliot Horowitz 2010-09-24 01:13:24 -04:00
parent f3b6f4dd8d
commit 507389045b

View File

@ -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;