diff options
Diffstat (limited to 'src/mongo/util/options_parser/option_section.h')
-rw-r--r-- | src/mongo/util/options_parser/option_section.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/util/options_parser/option_section.h b/src/mongo/util/options_parser/option_section.h index 685e3d869f2..d776c18ae00 100644 --- a/src/mongo/util/options_parser/option_section.h +++ b/src/mongo/util/options_parser/option_section.h @@ -170,6 +170,17 @@ private: std::string _name; std::list<OptionSection> _subSections; std::list<OptionDescription> _options; + + /** + * Internal accumulator of all dotted names (incl. deprecated) in _options and all _subSections. + * Used for ensuring duplicate entries don't find their way into different parts of the tree. + */ + std::set<std::string> _allDottedNames; + + /** + * Internal accumulator for all single names. See _allDottedNames for further info. + */ + std::set<std::string> _allSingleNames; }; } // namespace optionenvironment |