summaryrefslogtreecommitdiff
path: root/src/mongo/db/server_parameters_test.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2013-02-13 14:28:31 -0500
committerAndy Schwerin <schwerin@10gen.com>2013-02-15 11:33:38 -0500
commit31a2028d80848e1770bf91ced08bae9ca7139d58 (patch)
tree8dc81e94a7685c2c0d3931d7dc8026928729e94d /src/mongo/db/server_parameters_test.cpp
parenta09abdaa6c93c50d3b58ee97597baff96e02475b (diff)
downloadmongo-31a2028d80848e1770bf91ced08bae9ca7139d58.tar.gz
SERVER-8087 Make it possible to declare startup-only and runtime-only server parameters.
Diffstat (limited to 'src/mongo/db/server_parameters_test.cpp')
-rw-r--r--src/mongo/db/server_parameters_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/server_parameters_test.cpp b/src/mongo/db/server_parameters_test.cpp
index 5bb01f7f851..4a5aa38b415 100644
--- a/src/mongo/db/server_parameters_test.cpp
+++ b/src/mongo/db/server_parameters_test.cpp
@@ -24,7 +24,7 @@ namespace mongo {
TEST( ServerParameters, Simple1 ) {
int f = 5;
- ExportedServerParameter<int> ff( NULL, "ff", &f );
+ ExportedServerParameter<int> ff( NULL, "ff", &f, true, true );
ASSERT_EQUALS( "ff" , ff.name() );
ASSERT_EQUALS( 5, ff.get() );
@@ -45,7 +45,7 @@ namespace mongo {
TEST( ServerParameters, Vector1 ) {
vector<string> v;
- ExportedServerParameter< vector<string> > vv( NULL, "vv", &v );
+ ExportedServerParameter< vector<string> > vv( NULL, "vv", &v, true, true );
BSONObj x = BSON( "x" << BSON_ARRAY( "a" << "b" << "c" ) );
vv.set( x.firstElement() );