MongoDB::setWriteConcern Set the write concern for this database &reftitle.description; public boolMongoDB::setWriteConcern mixedw intwtimeout &reftitle.parameters; &mongo.setwriteconcern.parameters; &reftitle.returnvalues; &mongo.setwriteconcern.returnvalues; &reftitle.errors; &mongo.setwriteconcern.errors; &reftitle.examples; <methodname>MongoDB::setWriteConcern</methodname> example selectDB('test'); // Require that the majority of servers in the replica set acknowledge writes // within three seconds. $db->setWriteConcern('majority', 3000); ?> ]]> &reftitle.seealso; The write concern documentation. MongoDB::getWriteConcern