diff options
author | Shaun Verch <shaun.verch@mongodb.com> | 2014-03-27 11:24:43 -0400 |
---|---|---|
committer | Shaun Verch <shaun.verch@mongodb.com> | 2014-03-27 19:36:36 -0400 |
commit | 17882d68d1ee00e75e545abe65bda1b18876ef21 (patch) | |
tree | 012ead982260d8e95207af71c68a6de060739b47 /src/mongo/util/options_parser/environment.h | |
parent | 04eda9bb1b5a348201f0b81d56af950c1c538a09 (diff) | |
download | mongo-17882d68d1ee00e75e545abe65bda1b18876ef21.tar.gz |
SERVER-13372 Canonicalize dur, nodur, journal, nojournal and storage.journaling.enabled
Diffstat (limited to 'src/mongo/util/options_parser/environment.h')
-rw-r--r-- | src/mongo/util/options_parser/environment.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/util/options_parser/environment.h b/src/mongo/util/options_parser/environment.h index 7ba68919ed4..5f4cfa96ba5 100644 --- a/src/mongo/util/options_parser/environment.h +++ b/src/mongo/util/options_parser/environment.h @@ -118,6 +118,12 @@ namespace optionenvironment { */ Status set(const Key& key, const Value& value); + /** Remove the Value from this Environment with the given Key. If "validate" has + * already been called on this Environment, runs all Constraints on the new Environment. + * If any of the Constraints fail, reverts to the old Environment and returns an error + */ + Status remove(const Key& key); + /** Add a default Value to this Environment with the given Key. Fails if validate has * already been called on our environment. The get functions will return the default * if one exists and the value has not been explicitly set. |