Skip to content

Commit 9a84890

Browse files
m-ghazanfarkevinAlbs
authored andcommitted
CXX-2028 fix writeConcern population in find_and_modify
1 parent 2dddcc0 commit 9a84890

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

118118
if (session_t) {

0 commit comments

Comments
 (0)