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

mongoc_database_find_collections() and several generic "run command" helpers return cursors that are iterated using OP_GET_MORE on modern servers

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0
    • 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.

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

              Created:
              Updated:
              Resolved: