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

Catch MustDowngrade errors thrown by repairDatabaseAndCheckVersion

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.10
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Storage NYC 2019-03-25

      In db.cpp, the call to repairDatabaseAndCheckVersion only every returns a MustDowngrade error, which forces the server to exit cleanly. 

      Lower levels the code, DatabaseHolder::openDb for example, may need to throw the MustDowngrade error code, so db.cpp::_initAndListen should be modified to catch this error and exit cleanly.

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: