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

Introduce a setClusterParameterCommand base class

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution

      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.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            denis.grebennicov@mongodb.com Denis Grebennicov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: