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 47e2edf commit daadcbbCopy full SHA for daadcbb
src/mongoc/mongoc-uri.c
@@ -581,6 +581,12 @@ _mongoc_uri_build_write_concern (mongoc_uri_t *uri) /* IN */
581
wtimeoutms = bson_iter_int32 (&iter);
582
}
583
584
+ if (bson_iter_init_find_case (&iter, &uri->options, "journal") &&
585
+ BSON_ITER_HOLDS_BOOL (&iter) &&
586
+ bson_iter_bool (&iter)) {
587
+ mongoc_write_concern_set_journal (write_concern, true);
588
+ }
589
+
590
if (bson_iter_init_find_case (&iter, &uri->options, "w")) {
591
if (BSON_ITER_HOLDS_INT32 (&iter)) {
592
value = bson_iter_int32 (&iter);
0 commit comments