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

mongoc_collection_count_documents does not prepend empty $match

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.15.0
    • None
    • libmongoc
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: