summaryrefslogtreecommitdiff
path: root/src/mongo/db/server_parameters.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-12-21 00:01:20 -0500
committerEliot Horowitz <eliot@10gen.com>2012-12-21 00:01:55 -0500
commitf251438243be73cae48d118983fc9bc001d8d2ca (patch)
treedf9735372572d4a86f0ade72fa68ff67e5d633a5 /src/mongo/db/server_parameters.h
parent9291e8f4f875fc66ea53b6c365714cfe02a7c490 (diff)
downloadmongo-f251438243be73cae48d118983fc9bc001d8d2ca.tar.gz
SERVER-7778 - making more (set|get)Parameter fields use new ServerParameter framework
Diffstat (limited to 'src/mongo/db/server_parameters.h')
-rw-r--r--src/mongo/db/server_parameters.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/server_parameters.h b/src/mongo/db/server_parameters.h
index 3ee9319c809..328cb4f59a1 100644
--- a/src/mongo/db/server_parameters.h
+++ b/src/mongo/db/server_parameters.h
@@ -52,7 +52,7 @@ namespace mongo {
virtual bool allowedToChangeAtRuntime() const { return true; }
- virtual void append( BSONObjBuilder& b ) = 0;
+ virtual void append( BSONObjBuilder& b, const string& name ) = 0;
virtual Status set( const BSONElement& newValueElement ) = 0;
@@ -83,8 +83,8 @@ namespace mongo {
: ServerParameter( sps, name ), _value( value ) {}
virtual ~ExportedServerParameter() {}
- virtual void append( BSONObjBuilder& b ) {
- b.append( name(), *_value );
+ virtual void append( BSONObjBuilder& b, const string& name ) {
+ b.append( name, *_value );
}
virtual Status set( const BSONElement& newValueElement );