diff options
author | Randolph Tan <randolph@10gen.com> | 2014-05-06 10:43:19 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2014-06-06 10:31:49 -0400 |
commit | 0d5acb0e3a6b0f1cdf7f252aa9a13afb1e884848 (patch) | |
tree | 761487842572c5f02b40cd0c7cdd1cf63aa596c3 /jstests/sharding/shard3.js | |
parent | 2453cec627bb8f6100980dea273ac9eb54ecd645 (diff) | |
download | mongo-0d5acb0e3a6b0f1cdf7f252aa9a13afb1e884848.tar.gz |
SERVER-11256 improve handling of empty vs nonexistent CollectionMetadata
Diffstat (limited to 'jstests/sharding/shard3.js')
-rw-r--r-- | jstests/sharding/shard3.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/jstests/sharding/shard3.js b/jstests/sharding/shard3.js index 8674df81aca..8b36f809686 100644 --- a/jstests/sharding/shard3.js +++ b/jstests/sharding/shard3.js @@ -109,21 +109,6 @@ s.printCollectionInfo( "test.foo" , "after counts" ); assert.eq( 0 , primary.count() , "p count after drop" ) assert.eq( 0 , secondary.count() , "s count after drop" ) -// NOTE -// the following bypasses the sharding layer and writes straight to the servers -// this is not supported at all but we'd like to leave this backdoor for now -primary.save( { num : 1 } ); -secondary.save( { num : 4 } ); -assert.eq( 1 , primary.count() , "p count after drop and save" ) -assert.eq( 1 , secondary.count() , "s count after drop and save " ) - -print("*** makes sure that sharded access respects the drop command" ); - -assert.isnull( a.findOne() , "lookup via mongos 'a' accessed dropped data" ); -assert.isnull( b.findOne() , "lookup via mongos 'b' accessed dropped data" ); - -s.printCollectionInfo( "test.foo" , "after b findOne tests" ); - print( "*** dropDatabase setup" ) s.printShardingStatus() |