summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-11-26 11:31:06 -0500
committerRandolph Tan <randolph@10gen.com>2014-11-26 11:32:14 -0500
commitb85c4e1ab64c7b99f8c6f3cb70ba2e73004dea96 (patch)
tree5ec445a5905620a5acb2b6c21c82493eb5ca395b
parent0f07af1389edc601d00bd556fc4a06d8e5754448 (diff)
downloadmongo-b85c4e1ab64c7b99f8c6f3cb70ba2e73004dea96.tar.gz
SERVER-15318 copydb should not use exhaust flag when used against mongos
Fix test for v2.6
-rw-r--r--jstests/sharding/copydb_from_mongos.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/sharding/copydb_from_mongos.js b/jstests/sharding/copydb_from_mongos.js
index c0aac23d552..ba74f102a63 100644
--- a/jstests/sharding/copydb_from_mongos.js
+++ b/jstests/sharding/copydb_from_mongos.js
@@ -1,7 +1,8 @@
-var st = new ShardingTest({ shards: 2, other: { shardOptions: { verbose: 1 }}});
+var st = new ShardingTest({ shards: 2 });
var testDB = st.s.getDB('test');
-assert.writeOK(testDB.foo.insert({ a: 1 }));
+testDB.foo.insert({ a: 1 });
+assert.eq(null, testDB.getLastError());
var res = testDB.adminCommand({ copydb: 1,
fromhost: st.s.host,