summaryrefslogtreecommitdiff
path: root/jstests/core/batch_write_command_wc.js
blob: 07a6bf96f9d591810932bdbda5e1d5db3970418a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//
// Ensures that the server respects the batch write command WriteConcern, and behaves correctly
//

var coll = db.getCollection("batch_write_wc");
coll.drop();

assert(coll.getDB().getMongo().useWriteCommands(), "test is not running with write commands");

// Basic validation of WriteConcern
// -- {}, versus {w:0}/{w:1} +opt wTimeout
// -- j:1, fsync:1,
// -- replication: w:N (>1), w:String, wTimeout
// -- randomField:true, etc