DocumentResult does not close cursor

XMLWordPrintableJSON

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

      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
            Reporter:
            Eric Daniels
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: