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

maxTimeMS and maxAwaitTimeMS should be Int64, not Int32

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Major Change

      Description

      The CRUD spec defines maxTimeMS and maxAwaitTimeMS as Int64. Where the C driver handles these in a typed way (as opposed to query-to-command conversion), it expects Int32.

      The following functions use uint32_t for "maxTimeMS" and should be changed:

      • mongoc_cursor_get_max_await_time_ms()
      • mongoc_cursor_set_max_await_time_ms()
      • mongoc_find_and_modify_opts_get_max_time_ms()
      • mongoc_find_and_modify_opts_set_max_time_ms()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              david.golden David Golden
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: