mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-05 07:42:29 +02:00
PHPC-280: WriteConcern should always set journal/fsync boolean args
This commit is contained in:
@@ -87,14 +87,10 @@ PHP_METHOD(WriteConcern, __construct)
|
||||
|
||||
switch(ZEND_NUM_ARGS()) {
|
||||
case 4:
|
||||
if (fsync) {
|
||||
mongoc_write_concern_set_fsync(intern->write_concern, true);
|
||||
}
|
||||
mongoc_write_concern_set_fsync(intern->write_concern, fsync);
|
||||
/* fallthrough */
|
||||
case 3:
|
||||
if (journal) {
|
||||
mongoc_write_concern_set_journal(intern->write_concern, true);
|
||||
}
|
||||
mongoc_write_concern_set_journal(intern->write_concern, journal);
|
||||
/* fallthrough */
|
||||
case 2:
|
||||
if (wtimeout > 0) {
|
||||
|
||||
Reference in New Issue
Block a user