diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-11-16 15:30:04 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-11-16 15:40:58 -0500 |
commit | c7af76fe5f01e08d86d34ed2cb2f90677f044a6e (patch) | |
tree | 99ae3c62c8b8d9b876b4891844dad4ef878ae46d /jstests/sharding/shard1.js | |
parent | 2ea225cd7f2aa6fa2f0b93aae375f199a67f9e3f (diff) | |
download | mongo-c7af76fe5f01e08d86d34ed2cb2f90677f044a6e.tar.gz |
Don't create entries in config.databases if the dbname is invalid SERVER-4284
Diffstat (limited to 'jstests/sharding/shard1.js')
-rw-r--r-- | jstests/sharding/shard1.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/sharding/shard1.js b/jstests/sharding/shard1.js index ae382e49f7b..b7dc572695c 100644 --- a/jstests/sharding/shard1.js +++ b/jstests/sharding/shard1.js @@ -35,5 +35,9 @@ assert.eq( si.ns , "test.foo" ); assert.eq( 3 , db.foo.find().length() , "after sharding, no split count failed" ); +// SERVER-4284 +s.getDB( "foo bar" ).blah.insert( { x : 1 } ) +assert.isnull( s.config.databases.findOne( { _id : "foo bar" } ) ) + s.stop(); |