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().
- causes
-
CXX-1596 Use mongoc_cursor_new_from_command_reply_with_opts
- Closed
- is related to
-
CDRIVER-2517 Aggregation on sharded cluster fails when $gleStats is used as a cursor option
- Closed
- related to
-
CDRIVER-2710 Document upgrade path from mongoc_cursor_new_from_command_reply to mongoc_cursor_new_from_command_reply_with_opts
- Closed