summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-02-18 16:45:09 -0500
committerEliot Horowitz <eliot@10gen.com>2011-02-18 16:45:34 -0500
commitdcd5c777b7baa2c12636272372a8a1de669ad7c6 (patch)
treed9d148d1fcc21a124dac42c5f94cf5c7d5196f9e
parenta9e3511eda147d42f79203ad6e181e789c632c49 (diff)
downloadmongo-dcd5c777b7baa2c12636272372a8a1de669ad7c6.tar.gz
shouldn't be able to use "local" db via mongos SERVER-2590
-rw-r--r--s/request.cpp2
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() );