summaryrefslogtreecommitdiff
path: root/src/mongo/idl
diff options
context:
space:
mode:
authorEric Milkie <milkie@mongodb.com>2019-12-30 20:05:36 +0000
committerevergreen <evergreen@mongodb.com>2019-12-30 20:05:36 +0000
commit65b13aa0a585a7b1630faca5c6f3a1895853a35d (patch)
tree47fd0d78396665c2cae07336fff76a4dd06d01a7 /src/mongo/idl
parentc184d4e59b059f0a2bec164e93742231a004e346 (diff)
downloadmongo-65b13aa0a585a7b1630faca5c6f3a1895853a35d.tar.gz
SERVER-45288 switch Idempotency tests to use WiredTiger instead of ephemeralForTest
This reverts commit 04bbe5f2abf8945330a26d50257eb0a550f32af1.
Diffstat (limited to 'src/mongo/idl')
-rw-r--r--src/mongo/idl/server_parameter.cpp4
-rw-r--r--src/mongo/idl/server_parameter.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/idl/server_parameter.cpp b/src/mongo/idl/server_parameter.cpp
index 975f2b515e6..3f9d2c50d3c 100644
--- a/src/mongo/idl/server_parameter.cpp
+++ b/src/mongo/idl/server_parameter.cpp
@@ -113,6 +113,10 @@ StatusWith<std::string> ServerParameter::coerceToString(const BSONElement& eleme
}
}
+void ServerParameterSet::remove(const std::string& name) {
+ invariant(1 == _map.erase(name));
+}
+
IDLServerParameterDeprecatedAlias::IDLServerParameterDeprecatedAlias(StringData name,
ServerParameter* sp)
: ServerParameter(ServerParameterSet::getGlobal(),
diff --git a/src/mongo/idl/server_parameter.h b/src/mongo/idl/server_parameter.h
index 4fa5ba6b6f7..74a1971053c 100644
--- a/src/mongo/idl/server_parameter.h
+++ b/src/mongo/idl/server_parameter.h
@@ -138,6 +138,7 @@ public:
using Map = ServerParameter::Map;
void add(ServerParameter* sp);
+ void remove(const std::string& name);
const Map& getMap() const {
return _map;