Skip to content

Commit 3c0627b

Browse files
committed
CDRIVER-2621 write concern default bug fixed
1 parent 0755d38 commit 3c0627b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libmongoc/src/mongoc/mongoc-uri.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ _mongoc_uri_build_write_concern (mongoc_uri_t *uri, bson_error_t *error)
13491349
MONGOC_URI_ERROR (
13501350
error, "Unsupported wtimeoutMS value [w=%d]", wtimeoutms);
13511351
return false;
1352-
} else {
1352+
} else if (wtimeoutms > 0) {
13531353
mongoc_write_concern_set_wtimeout (write_concern, wtimeoutms);
13541354
}
13551355

0 commit comments

Comments
 (0)