Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2588

Run Close in cursor.All with context.Background

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.11.0
    • None
    • None
    • None
    • Not Needed

    Description

      cursor.All defers a call to Close to make sure the cursor is closed server-side. This call to Close is done with the same context passed to All. We should run the Close call with a context.Background to close the cursor even when the original context errors during the call to All.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: