Run Close in cursor.All with context.Background

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Benji Rewis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: