[SERVER-71808] Refactor options_parser to expose a function for reading files from disk. Created: 02/Dec/22  Updated: 29/Oct/23  Resolved: 07/Dec/22

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

Type: Task Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

We want to read a relatively small (~KBs) file into a std::string. Because the use-case is for reading files specified via command line options similar to classic configuration files, it's preferable to preserve the same error handling behaviors.



 Comments   
Comment by Githook User [ 07/Dec/22 ]

Author:

{'name': 'Daniel Gottlieb', 'email': 'daniel.gottlieb@mongodb.com', 'username': 'dgottlieb'}

Message: SERVER-71808: Refactor options_parser to expose a `readRawFile` method.
Branch: master
https://github.com/mongodb/mongo/commit/a995b526be6e62627455f9dba72fb3cfe3932f75

Comment by Githook User [ 07/Dec/22 ]

Author:

{'name': 'Daniel Gottlieb', 'email': 'daniel.gottlieb@mongodb.com', 'username': 'dgottlieb'}

Message: SERVER-71808: Refactor options_parser to expose a `readRawFile` method.
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/1548311ce19c33bc47e4564ab77b630e3549c8ff

Generated at Thu Feb 08 06:20:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.