[SERVER-59401] Remove usage of default constructor of DatabaseVersion Created: 17/Aug/21 Updated: 29/Oct/23 Resolved: 18/Aug/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 5.0.2 |
| Fix Version/s: | 5.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Allison Easton | Assignee: | Allison Easton |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Sprint: | Sharding EMEA 2021-08-23 | ||||
| Participants: | |||||
| Linked BF Score: | 35 | ||||
| Description |
|
The default constructor for DatabaseType calls the default constructor of DatabaseVersion, which has been deleted since it really shouldn't be used. This causes compilation issues, so the usage needs to be removed. |
| Comments |
| Comment by Vivian Ge (Inactive) [ 06/Oct/21 ] |
|
Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you! |
| Comment by Githook User [ 18/Aug/21 ] |
|
Author: {'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}Message: |
| Comment by Allison Easton [ 17/Aug/21 ] |
|
The default constructor of DatabaseType uses the default constructor of DatabaseVersion. Unfortunately, because futures on Windows require a default constructor, this cannot be removed. For the time being, we have decided to put the default constructor back into DatabaseVersion to fix compilation in evergreen. We should revisit the possibility of replacing the DatabaseVersion in DatabaseType with an optional DatabaseVersion |