Skip to content

Commit 62cf144

Browse files
m-ghazanfarkevinAlbs
authored andcommitted
CXX-2028 fix writeConcern population in find_and_modify
1 parent 42dd2ae commit 62cf144

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
@@ -113,7 +113,7 @@ mongocxx::stdx::optional<bsoncxx::document::value> find_and_modify(
113113
if (!options.write_concern()->is_acknowledged() && options.collation()) {
114114
throw mongocxx::logic_error{mongocxx::error_code::k_invalid_parameter};
115115
}
116-
extra.append(concatenate(options.write_concern()->to_document()));
116+
extra.append(kvp("writeConcern", options.write_concern()->to_document()));
117117
}
118118

119119
if (session_t) {

0 commit comments

Comments
 (0)