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

Ensure Cursor implementations return Close error on Close

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.3
    • Affects Version/s: 0.0.1
    • Component/s: None

      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.

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

              Created:
              Updated:
              Resolved: