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

mongoc_collection_count_documents does not prepend empty $match

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.15.0
    • Component/s: libmongoc
    • Labels:
      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

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

              Dates

              Created:
              Updated:
              Resolved: