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

Ensure Cursor implementations return Close error on Close

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 0.0.3
    • 0.0.1
    • None

    Description

      According to the interface documentation for ops.Cursor: "Returns the error status of this cursor so that clients do not have to call Err() separately". This would result in confusion around where an error actually originated and what error to return when both a Cursor error and a Close error occur.

      When the Cursor implementations are updated for the command structure, ensure that the Close method only returns errors related to closing the Cursor.

      Attachments

        Activity

          People

            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: