-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: libmongoc
-
None
This was discovered in expectation comparisons of retryable reads.
The logic of countDocuments here:
https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst#countdocuments
Indicates we should always prepend the $match, even if a user does not provide a filter.