-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Cursors returned by any of the following four API functions are iterated using legacy OP_GET_MORE wire protocol messages (if multiple batches are needed), even if the server supports the getMore command:
- mongoc_database_find_collections()
- mongoc_database_get_collection_names()
- mongoc_client_command()
- mongoc_database_command()
- mongoc_collection_command()
This is due to the fact that the return value of _use_find_command() depends on the value of the "is_command" flag of the given cursor. The above API functions set the "is_command" flag on the cursors they return, and the return value of _use_find_command() is used as the decision for whether to send "get more" requests using OP_GET_MORE or the getMore command.