summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-11-25 11:24:49 -0500
committerRandolph Tan <randolph@10gen.com>2014-11-25 11:40:55 -0500
commitc8256d5ea1adf9c70c5f7fc5f03f017fa8c68ec8 (patch)
tree78a289a05ff42b336329dbd3ddfa2fabdcfe799c
parentfa4f0277a788e78db3639eaa82d46bac1dfa9e34 (diff)
downloadmongo-c8256d5ea1adf9c70c5f7fc5f03f017fa8c68ec8.tar.gz
SERVER-16316 Remove unsupported behavior in shard3.js
-rw-r--r--jstests/sharding/shard3.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/jstests/sharding/shard3.js b/jstests/sharding/shard3.js
index 785bcae1a40..d202b0f37c4 100644
--- a/jstests/sharding/shard3.js
+++ b/jstests/sharding/shard3.js
@@ -110,21 +110,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()