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

Make cursor "limit" a signed int64_t

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: libmongoc
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: