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

mongoc_collection_estimated_document_count should not accept an explicit session

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

      According to the sessions spec, estimatedDocumentCount should not support an explicit session parameter: https://github.com/mongodb/specifications/blob/master/source/sessions/driver-sessions.rst#new-collection-methods-that-take-an-explicit-session

      However, I am able to pass one in by appending it to the options bson_t and I've confirmed via command monitoring that the id for the session I specified is being used.

      The docs section on sessions also makes it seem like you can use this method in a transaction: http://mongoc.org/libmongoc/current/mongoc_collection_estimated_document_count.html

            Assignee:
            roberto.sanchez@mongodb.com Roberto Sanchez
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: