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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker - P1
    • Resolution: Fixed
    • None
    • 1.1.0
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: