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

Do not send an extra getMore when resuming if aggregate returns an empty batch

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • libmongoc
    • None

    Description

      When resuming change stream, we call mongoc_cursor_next on the cursor we create with the aggregate command. But if the aggregate returned an empty batch, we mongoc_cursor_next will send another getMore command (but we should just return NULL in that case).

      Attachments

        Activity

          People

            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: