Skip to content

Commit 293003a

Browse files
committed
CXX-2028 remove extra writeConcern in find_one_and_delete
1 parent b9bd6ee commit 293003a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/mongocxx/collection.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -747,10 +747,6 @@ stdx::optional<bsoncxx::document::value> collection::find_one_and_delete(
747747
options_doc.append(kvp("maxTimeMS", bsoncxx::types::b_int64{options.max_time()->count()}));
748748
}
749749

750-
if (options.write_concern()) {
751-
options_doc.append(kvp("writeConcern", options.write_concern()->to_document()));
752-
}
753-
754750
return find_and_modify(
755751
_get_impl().collection_t, command_doc.view(), options_doc.view(), options.write_concern());
756752
}

0 commit comments

Comments
 (0)