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

DocumentResult does not close cursor

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.14
    • Affects Version/s: None
    • Component/s: CRUD

      https://github.com/mongodb/mongo-go-driver/blob/master/mongo/document_result.go#L43 should have a defer dr.cur.Close(context.Background()) right before it. This function may need a backwards breaking change of requiring a context as a param to get API parity.

            Assignee:
            matthew.chiaravalloti@mongodb.com Matthew Chiaravalloti
            Reporter:
            eric.daniels@mongodb.com Eric Daniels
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: