Skip to content

Commit deb3e38

Browse files
m-ghazanfarkevinAlbs
authored andcommitted
CXX-2028 fix writeConcern population in find_and_modify
1 parent 4629521 commit deb3e38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongocxx/collection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ mongocxx::stdx::optional<bsoncxx::document::value> find_and_modify(
111111
if (!options.write_concern()->is_acknowledged() && options.collation()) {
112112
throw mongocxx::logic_error{mongocxx::error_code::k_invalid_parameter};
113113
}
114-
extra.append(concatenate(options.write_concern()->to_document()));
114+
extra.append(kvp("writeConcern", options.write_concern()->to_document()));
115115
}
116116

117117
if (session_t) {

0 commit comments

Comments
 (0)