summaryrefslogtreecommitdiff
path: root/jstests/sharding/movechunk_with_noMoveParanoia.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/movechunk_with_noMoveParanoia.js')
-rw-r--r--jstests/sharding/movechunk_with_noMoveParanoia.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/jstests/sharding/movechunk_with_noMoveParanoia.js b/jstests/sharding/movechunk_with_noMoveParanoia.js
index 0e2f6bc2248..ae8ef5899a8 100644
--- a/jstests/sharding/movechunk_with_noMoveParanoia.js
+++ b/jstests/sharding/movechunk_with_noMoveParanoia.js
@@ -1,19 +1,19 @@
/**
* This test sets moveParanoia flag and then check that the directory is created with the moved data
*/
-var st = new ShardingTest( { shards: 2,
- mongos:1,
- other : {
- chunkSize: 1,
- shardOptions: { noMoveParanoia:"" }}});
+var st = new ShardingTest(
+ {shards: 2, mongos: 1, other: {chunkSize: 1, shardOptions: {noMoveParanoia: ""}}});
load("jstests/sharding/movechunk_include.js");
setupMoveChunkTest(st);
var shards = [st.shard0, st.shard1];
-for(i in shards) {
+for (i in shards) {
var dbpath = shards[i].adminCommand("getCmdLineOpts").parsed.storage.dbPath;
- var hasMoveChunkDir = 0 != ls(dbpath).filter(function(a) {return null != a.match("moveChunk");}).length;
+ var hasMoveChunkDir = 0 !=
+ ls(dbpath).filter(function(a) {
+ return null != a.match("moveChunk");
+ }).length;
assert(!hasMoveChunkDir, dbpath + ": has MoveChunk directory + " + ls(dbpath));
}
st.stop();