[SERVER-31154] Make planner options stringizer check completeness at compile time. Created: 19/Sep/17  Updated: 30/Oct/23  Resolved: 19/Sep/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Matthew Russotto Assignee: Matthew Russotto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

If we add a new planner option bit, we want that option added to the stringizer. By changing the stringizer from a nested if-then into a case, we can ensure at compile time that no option is missed.



 Comments   
Comment by Githook User [ 19/Sep/17 ]

Author:

{'username': 'mtrussotto', 'name': 'Matthew Russotto', 'email': 'matthew.russotto@10gen.com'}

Message: SERVER-31154 Make planner options stringizer check completeness at compile time.
Branch: master
https://github.com/mongodb/mongo/commit/d1c2d57cd919bcead99fe4b37a821b7e3e4a9def

Comment by Matthew Russotto [ 19/Sep/17 ]

Code review url: https://mongodbcr.appspot.com/156720002

Generated at Thu Feb 08 04:26:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.