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:
parent
a9e3511eda
commit
dcd5c777b7
@ -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() );
|
||||
|
Loading…
Reference in New Issue
Block a user