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

Make cursor "limit" a signed int64_t

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • 2.0.0
    • None
    • libmongoc
    • None
    • Major Change

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: