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

Find() uses a write selector instead of a read selector

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker - P1 Blocker - P1
    • 1.1.0
    • None
    • CRUD
    • None

    Description

      In the master branch, the Find() command uses selector := makePinnedSelector(sess, coll.writeSelector) but it should use a read selector as the default to makePinnedSelector.

      This bug blocks mongotools 4.2 support, as it breaks read preference support in tools.

      Attachments

        Activity

          People

            divjot.arora@mongodb.com Divjot Arora (Inactive)
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: