diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-02-18 16:45:09 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-02-18 16:45:34 -0500 |
commit | dcd5c777b7baa2c12636272372a8a1de669ad7c6 (patch) | |
tree | d9d148d1fcc21a124dac42c5f94cf5c7d5196f9e | |
parent | a9e3511eda147d42f79203ad6e181e789c632c49 (diff) | |
download | mongo-dcd5c777b7baa2c12636272372a8a1de669ad7c6.tar.gz |
shouldn't be able to use "local" db via mongos SERVER-2590
-rw-r--r-- | s/request.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/s/request.cpp b/s/request.cpp index 4ae28ec21e2..52f2e547bf9 100644 --- a/s/request.cpp +++ b/s/request.cpp @@ -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() ); |