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

Refactor the Plan Executor to return specific reply types for command invocations

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Replication

    Description

      Currently, commands like ListIndexes call the PlanExecutor to generate a BSON Object of representing a single index return item for the command invocation. We would instead like the PlanExecutor to accept a type of xCmd and return an object of type xReplyItem (in the case of ListIndexes, we would want it to accept a type of ListIndexesCmd and return a type of ListIndexesReplyItem) so that we do not have to parse the BSON Object. We would have to make the PlanExecutor be able to return multiple types, as ListCollections calls the same functions on the PlanExecutor as well. 

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            shreyas.kalyan@mongodb.com Shreyas Kalyan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: