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

Aggregations executed twice on MongoDB < 2.6

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.2-beta1
    • None
    • libmongoc
    • None

    Description

      The driver should check if maxWireVersion >= 1 and if so pass "cursor: {}" to the "aggregate" command. Instead it doesn't check the wire version; it always passes "cursor: {batchSize: 100}" and if it gets an error it tries again without the "cursor" field, doing another round trip on every aggregation.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: