Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3205

Adjust getMore command batchSize calculation

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Command Operations
    • None

      This is a follow up to CSHARP-3162
      The getMore test (link) was failing, because getMore command contained incorrect value for batchSize field.
      This field is calculated correctly for getMore protocol: AsyncCursor.CalculateGetMoreProtocolNumberToReturn() so this logic could be reused for calculating batchSize value for getMore command as well.
      Specification: Behavior of Limit, skip and batchSize and Combining Limit and Batch Size for the Wire Protocol
      Also in scope of this ticket json test (getMore.json) should be restored to specification state.

            Assignee:
            Unassigned Unassigned
            Reporter:
            mikalai.mazurenka@mongodb.com Mikalai Mazurenka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: