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

Create consistent reply for estimatedDocumentCount

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.18.0, 1.18.0-alpha
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      As of CDRIVER-3905 mongoc_collection_estimated_document_count can return a different server response format depending on whether the command was run against < 4.9 or 4.9+.

      Create a consistent format for the reply of estimatedDocumentCount. Additionally, the spec only requires us to return an int, so we should investigate the usage of this returned response.

      Also, investigate the error that could be returned with a successful but malformed reply in estimated document count.

            Assignee:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Reporter:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: