summaryrefslogtreecommitdiff
path: root/jstests/slow2
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-04-27 11:48:21 -0400
committerSpencer T Brody <spencer@mongodb.com>2015-04-27 13:27:02 -0400
commit8392a9f55c552a36b538c4ea854c2c0e0069ff26 (patch)
treec687a9a3e22a566bf8e63779555048a4e0146074 /jstests/slow2
parent34b853ed0566a3bbffcd825191b9000de331bddc (diff)
downloadmongo-8392a9f55c552a36b538c4ea854c2c0e0069ff26.tar.gz
SERVER-17932 Make sure sharding passthrough test actually runs through mongos
Diffstat (limited to 'jstests/slow2')
-rw-r--r--jstests/slow2/sharding_jscore_passthrough.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/slow2/sharding_jscore_passthrough.js b/jstests/slow2/sharding_jscore_passthrough.js
index b167b2ccbe7..44598d4ddc5 100644
--- a/jstests/slow2/sharding_jscore_passthrough.js
+++ b/jstests/slow2/sharding_jscore_passthrough.js
@@ -1,10 +1,12 @@
+var db;
+
(function() {
"use strict"
var myShardingTest = new ShardingTest("sharding_passthrough", 1, 0, 1);
myShardingTest.adminCommand({ enablesharding : "test" });
- var db = myShardingTest.getDB("test");
+ db = myShardingTest.getDB("test");
db.getMongo().forceWriteMode("commands");
_useWriteCommandsDefault = function() { return true; }; // for tests launching parallel shells.