summaryrefslogtreecommitdiff
path: root/jstests/sharding/read_pref_cmd.js
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2012-11-20 11:04:20 -0500
committerRandolph Tan <randolph@10gen.com>2012-11-20 11:07:04 -0500
commit7aac243b122f4ac073f81a1f98182d40bc322ffc (patch)
tree7042654500145c7a6154abc516acc91d963cec1c /jstests/sharding/read_pref_cmd.js
parent675132c08da314433157016c3a0ee1187b55b65a (diff)
downloadmongo-7aac243b122f4ac073f81a1f98182d40bc322ffc.tar.gz
SERVER-7423 Support commands for read preference
Made sure that the drop command gets applied on the secondaries first before initializing the profile collections in the test.
Diffstat (limited to 'jstests/sharding/read_pref_cmd.js')
-rw-r--r--jstests/sharding/read_pref_cmd.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/read_pref_cmd.js b/jstests/sharding/read_pref_cmd.js
index 0b271737eb8..f70d1d4de92 100644
--- a/jstests/sharding/read_pref_cmd.js
+++ b/jstests/sharding/read_pref_cmd.js
@@ -155,6 +155,7 @@ assert.soon(function() {
doTest(new Mongo(st.rs0.getURL()), st.rs0.nodes, false);
st.s.getDB('test').dropDatabase();
+st.s.getDB('test').runCommand({ getLastError: 1, w: NODE_COUNT });
configDB.adminCommand({ enableSharding: 'test' });
configDB.adminCommand({ shardCollection: 'test.user', key: { x: 1 }});