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

Deprecate mongoc_client_kill_cursor

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.2-rc0
    • Affects Version/s: None
    • Component/s: Docs, libmongoc
    • None

      mongoc_client_kill_cursor doesn't accept a "hint" that would tell the client which server in a replica set or set of mongoses to kill the cursor on, so it's only reliable when connected to a single server.

      Beginning with MongoDB 3.2 we begin migrating from the OP_KILLCURSORS message to the killCursors command (DRIVERS-211), which requires the cursor's original database and collection name as well as its id. Again, mongoc_client_kill_cursor doesn't accept these parameters.

      Deprecate mongoc_client_kill_cursor since it doesn't work with compound server topologies and will eventually stop working with modern wire protocols. We could replace it with an extended API but it's unnecessary: mongoc_cursor_destroy can always kill the cursor correctly. There's no need for a separate kill-cursors function.

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

              Created:
              Updated:
              Resolved: