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

BatchSize does not work for legacy collection enumeration

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.5.2
    • None
    • None
    • None

    Description

      This commit added a BatchSize option for Database#ListCollections but the legacy listCollections code path for server version 2.6 does not honor it (see here). We should fix that by using the cursor.batchSize command field to set the NumberToReturn field in the constructed OP_QUERY message similar to the legacy listIndexes logic.

      Additionally, GODRIVER-1934 is adding a test for getMore/killCursors commands to mongo/integration/database_test.go. Due to this bug, the test has to be skipped on 2.6, so the work for this ticket should also unskip it.

      Attachments

        Activity

          People

            matt.dale@mongodb.com Matt Dale
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: