diff options
author | Jan Lehnardt <jan@apache.org> | 2008-08-30 14:27:01 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2008-08-30 14:27:01 +0000 |
commit | 3751c13253370c72735fb070588fa8d99db5e81a (patch) | |
tree | 650691eddcc992946b87a1c7d4faf41fdfacc2b4 /src/couchdb/couch_server.erl | |
parent | bef662fcc96e7b578aac40154e7767de30e9a1c0 (diff) |
- Rename configuration options and sections to allow for a nicer .ini file and HTTP API calls.
- Enable .ini parser to read variable assignments with spaces around the '='-sign.
- Remove inadequate comment.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690513 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_server.erl')
-rw-r--r-- | src/couchdb/couch_server.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/couchdb/couch_server.erl b/src/couchdb/couch_server.erl index 2844b443..b6969f42 100644 --- a/src/couchdb/couch_server.erl +++ b/src/couchdb/couch_server.erl @@ -30,7 +30,7 @@ }). start() -> - start(["couch.ini"]). + start(["default.ini"]). start(IniFiles) -> couch_server_sup:start_link(IniFiles). @@ -94,13 +94,13 @@ init([]) -> % just stop if one of the config settings change. couch_server_sup % will restart us and then we will pick up the new settings. - RootDir = couch_config:get({"CouchDB", "RootDirectory"}, "."), - MaxDbsOpen = couch_config:get({"CouchDB", "MaxDbsOpen"}, "100"), + RootDir = couch_config:get({"couchdb", "database_dir"}, "."), + MaxDbsOpen = couch_config:get({"couchdb", "max_open_databases"}, "100"), Self = self(), ok = couch_config:register( - fun({"CouchDB", "RootDirectory"}) -> + fun({"couchdb", "database_dir"}) -> exit(Self, config_change); - ({"CouchDB", "ServerOptions"}) -> + ({"couchdb", "server_options"}) -> exit(Self, config_change) end), {ok, RegExp} = regexp:parse("^[a-z][a-z0-9\\_\\$()\\+\\-\\/]*$"), @@ -261,7 +261,7 @@ handle_call({delete, DbName}, _From, Server) -> {reply, Error, Server} end; handle_call(remote_restart, _From, Server) -> - case couch_config:get({"CouchDB", "AllowRemoteRestart"}, "false") of + case couch_config:get({"couchdb", "allow_remote_restart"}, "false") of "true" -> exit(couch_server_sup, restart); _ -> |