We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c2b95 commit fa3618eCopy full SHA for fa3618e
src/MongoDB/WriteConcern.c
@@ -87,14 +87,10 @@ PHP_METHOD(WriteConcern, __construct)
87
88
switch(ZEND_NUM_ARGS()) {
89
case 4:
90
- if (fsync) {
91
- mongoc_write_concern_set_fsync(intern->write_concern, true);
92
- }
+ mongoc_write_concern_set_fsync(intern->write_concern, fsync);
93
/* fallthrough */
94
case 3:
95
- if (journal) {
96
- mongoc_write_concern_set_journal(intern->write_concern, true);
97
+ mongoc_write_concern_set_journal(intern->write_concern, journal);
98
99
case 2:
100
if (wtimeout > 0) {
0 commit comments