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

Return dbResponse object stored with exhaustNS and exhaustCursorId in receivedCommands

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.1, 4.3.1
    • Component/s: Replication
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: