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

Catch MustDowngrade errors thrown by repairDatabaseAndCheckVersion

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.10
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Storage NYC 2019-03-25

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              divjot.arora Divjot Arora
              Reporter:
              louis.williams Louis Williams
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: