[CDRIVER-2518] Implement mongoc_cursor_new_from_command_reply_with_opts() Created: 22/Feb/18  Updated: 28/Oct/23  Resolved: 11/Jun/18

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

Type: New Feature Priority: Trivial - P5
Reporter: Jeremy Mikola Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes CXX-1596 Use mongoc_cursor_new_from_command_re... Closed
Related
related to CDRIVER-2710 Document upgrade path from mongoc_cur... Closed
is related to CDRIVER-2517 Aggregation on sharded cluster fails ... Closed

 Description   

The quick resolution to CDRIVER-2517 was to ignore $gleStats in command replies when using that reply to create a new cursor. A more robust solution would be to take the cursor document (or top-level command reply) and cursor options as separate arguments. This would allow us to do without a call to bson_copy_to_excluding_noinit().



 Comments   
Comment by Githook User [ 11/Jun/18 ]

Author:

{'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com'}

Message: CDRIVER-2518 mongoc_cursor_new_from_command_reply_with_opts
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/3b214cc3b38d44aa4aefc8f4612c209ca5118bba

Comment by A. Jesse Jiryu Davis [ 10/Jun/18 ]

How does the PHP driver ensure that a cursor created with mongoc_cursor_new_from_command_reply has the same session as we used for the original find/aggregate command?

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