Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1946

If batch size is set to 1, send nToReturn of 2

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.13.2, 3.0.3
    • Query Operations
    • None

    Description

      The server special cases nToReturn of 1 to close the cursor, but if the user sets a batch size of 1, the intention is not to close the cursor (a limit of 1 would be used instead).

      So the driver should set nToReturn of 2 when batch size is set to 1.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: