Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-41481

Return dbResponse object stored with exhaustNS and exhaustCursorId in receivedCommands

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.1, 4.3.1
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • v4.2
    • Repl 2019-06-17, Repl 2019-07-01

      Add a new member exhaustCursorId in DbResponse object to hold the exhaust cursor id information.

      receivedCommands() in the command execution layer should return DBResponse with exhaustNS & exhaustCursorId members populated from response data (which is built by execCommandDatabase() and stored in replyBuilder->getBodyBuilder()) cursor.ns and cursor.id fields respectively. The values should be populated before serializing the response data and sending it to network layer. The values gets populated only if the following conditions are satisfied:

      • Request message has OpMsg::kExhaustSupported flag set.
      • Response data has “ok” field set to 1 (no error) and contains “cursor” object field.

            Assignee:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Reporter:
            jason.chan@mongodb.com Jason Chan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: