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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.13.2, 3.0.3
    • Component/s: Query Operations
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: