0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

shouldn't be able to use "local" db via mongos SERVER-2590

This commit is contained in:
Eliot Horowitz 2011-02-18 16:45:09 -05:00
parent a9e3511eda
commit dcd5c777b7

View File

@ -59,6 +59,8 @@ namespace mongo {
return;
}
uassert( 13644 , "can't use 'local' database through mongos" , ! str::startsWith( getns() , "local." ) );
_config = grid.getDBConfig( getns() );
if ( reload )
uassert( 10192 , "db config reload failed!" , _config->reload() );