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

ntservice should not have to fake out exitCleanly() to achieve its ends

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Environment:
      Windows

      The implementation of shutting down mongod when it is installed as an ntservice requires some clever faking out of the exitCleanly/dbexit logic, allowing those functions to sometimes return (based on the supplied exit code).

      A future design should separate the logic of "do the cleanup required for shutdown" from "terminate the current process", so that the ntservice module can implement the last step separately from the route taken by exitCleanly().

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: