[CDRIVER-465] Add a way to kill a cursor Created: 20/Nov/14  Updated: 09/Jun/15  Resolved: 06/Jan/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1.0

Type: New Feature Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to PHPC-62 Implement Cursor class Closed

 Description   

We need to provide a way to kill a rogue cursor.

I propose to add a new function to kill arbitrary cursor on a client.

Note: The exact server (hint) is not an argument (it probably should?).



 Comments   
Comment by Githook User [ 01/Dec/14 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@mongodb.com'}

Message: CDRIVER-465: Add mongoc_client_kill_cursor()

A good samaritan should clean after himself using
mongoc_cursor_destroy(cursor), but you may not always have the cursor instance.
You are just trying to cleanup after a broken process, and all you got is
the cursorid, which you retrieved from db.currentOp()

Closes #121
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/6dbd8d893803557cdaecec35e4241337b5bd58b5

Comment by Hannes Magnusson [ 20/Nov/14 ]

https://github.com/mongodb/mongo-c-driver/pull/121

Generated at Wed Feb 07 21:09:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.