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

Refactor CmdLine::store

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      We should split it into two steps. store() should only store the options, but not act on them. A new function process() should act on them. Currently it is hard to get a holistic view of all options because things like --fork and --logpath modify the running state before we can intercept. This is particularly a problem for --shutdown, but there are other cases where it would be nice to have a step between reading the config and acting on it.

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: