Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3292

mongoc_collection_count_documents does not prepend empty $match

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.15.0
    • 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.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: