Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit d228555

Browse files
committed
HHVM-203: Client construction should use mongoc_write_concern_is_valid()
1 parent f0c919b commit d228555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB/Driver/Manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ static bool hippo_mongo_driver_manager_apply_wc(mongoc_client_t *client, const A
308308
/* This may be redundant in light of the last check (unacknowledged w with
309309
* journal), but we'll check anyway in case additional validation is
310310
* implemented. */
311-
if (!_mongoc_write_concern_is_valid(new_wc)) {
311+
if (!mongoc_write_concern_is_valid(new_wc)) {
312312
throw MongoDriver::Utils::throwInvalidArgumentException("Write concern is not valid");
313313
mongoc_write_concern_destroy(new_wc);
314314

0 commit comments

Comments
 (0)