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

Deduplicate multiply defined member functions of the mongo::Command class

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible

      The Command class methods Command::registerError, Command::findCommand, and Command::execCommand are currently implemented differently in mongod and mongos. This means that any library that depends on the Command class cannot fully express its dependencies, since it cannot know whether it is ultimately to be linked into mongod or mongos. We should either find a way to unify the implementations, or find a way to dependency inject different helper implementations.

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: