Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1053

Make cursor "limit" a signed int64_t

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.0.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • Labels:
      None
    • Major Change

      Since the beginning, mongoc_collection_find's "limit" parameter has been unsigned. Negative limits are a useful way to tell the server to send a single batch and close the cursor; there should be a way to communicate a negative limit to the server via the C Driver.

      This is an API break; wait for 2.0.

      Update the doc for mongoc_cursor_set_limit.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: