[SERVER-40126] Catch MustDowngrade errors thrown by repairDatabaseAndCheckVersion Created: 14/Mar/19 Updated: 29/Oct/23 Resolved: 19/Mar/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.10 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Louis Williams | Assignee: | Divjot Arora (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Sprint: | Storage NYC 2019-03-25 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| 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. |
| Comments |
| Comment by Githook User [ 19/Mar/19 ] |
|
Author: {'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}Message: |