Skip to content

Commit ad17e84

Browse files
committed
Ensure WC is set on database and collection entities
1 parent 798a71a commit ad17e84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libmongoc/tests/unified/entity-map.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ entity_database_new (entity_map_t *entity_map,
454454
if (coll_or_db_opts->rp) {
455455
mongoc_database_set_read_prefs (db, coll_or_db_opts->rp);
456456
}
457-
if (coll_or_db_opts->rc) {
457+
if (coll_or_db_opts->wc) {
458458
mongoc_database_set_write_concern (db, coll_or_db_opts->wc);
459459
}
460460
}
@@ -517,7 +517,7 @@ entity_collection_new (entity_map_t *entity_map,
517517
if (coll_or_db_opts->rp) {
518518
mongoc_collection_set_read_prefs (coll, coll_or_db_opts->rp);
519519
}
520-
if (coll_or_db_opts->rc) {
520+
if (coll_or_db_opts->wc) {
521521
mongoc_collection_set_write_concern (coll, coll_or_db_opts->wc);
522522
}
523523
}

0 commit comments

Comments
 (0)