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

Refactor code to not assume OP_REPLY is the only reply opcode

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The cursors, and most of command infrastructure, has liberal assumption that the opcode they are working with is OP_REPLY.

      Aside from the OP_REPLY sanitychecks, it accesses the rpc structure in a intimate way rather then through a layer that abstracts the actual opcodes.

      There are also aggressive optimizations in the command infrastructure that instead of expecting a cursor it allocates the entire reply as a command reply, rather then reading the reply into buffer and present it as a bson, like the cursors do.

      These assumptions are no longer true for other opcdoes.

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: