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

Run Close in cursor.All with context.Background

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.11.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed

      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.

            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: