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

Introduce a setClusterParameterCommand base class

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Execution

    Description

      As part of SERVER-77464 setQuerySettings command is calling setClusterParameter command on itself for further processing.

      In order to avoid the setClusterParameter command to go through the DBDirectClient, a weak function was introduced that corresponds to the implementation of the setClusterParameter command invocation. This weak function is registered for both mongos and mongod implementations.

      Since setClusterParameterCommand classes (for both mongos and mongod implementations) are relatively same and only differentiate with the invocation body, the idea behind this is ticket is to refactor it by introducing a new base class and in the derived classes just override the command invocation with the weak function call.

      charlie.swanson@mongodb.com proposed this as part of the code review in this comment.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            denis.grebennicov@mongodb.com Denis Grebennicov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: