Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data/crud/test_files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ v2/aggregate-merge.json
v2/aggregate-out-readConcern.json
v2/bulkWrite-arrayFilters.json
v2/db-aggregate.json
v2/find-allowdiskuse.json
v2/updateWithPipelines.json
4 changes: 4 additions & 0 deletions src/mongocxx/test/spec/operation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ document::value operation_runner::_run_find(document::view operation) {
options.sort(arguments["sort"].get_document().value);
}

if (arguments["allowDiskUse"]) {
options.allow_disk_use(arguments["allowDiskUse"].get_bool().value);
}

if (arguments["modifiers"]) {
document::view modifiers = arguments["modifiers"].get_document().value;
if (modifiers["$comment"]) {
Expand Down
2 changes: 1 addition & 1 deletion src/mongocxx/test_util/client_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ bool matches(types::bson_value::view main,
continue;
}
if (main_view.find(el.key()) == main_view.end()) {
return false;
return el.get_value().type() == type::k_null;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See this

}
if (!matches(main_view[el.key()].get_value(), el.get_value(), visitor_fn)) {
return false;
Expand Down