Permalink
Browse files

Fix for COUCHDB-215, we weren't properly converting a config setting …

…to an integer.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@735817 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent c63f493 commit e18359140f647a67874b2cfff5cf71980a2ca2f2 Damien F. Katz committed Jan 19, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/couchdb/couch_server.erl
@@ -123,7 +123,8 @@ init([]) ->
% will restart us and then we will pick up the new settings.
RootDir = couch_config:get("couchdb", "database_dir", "."),
- MaxDbsOpen = couch_config:get("couchdb", "max_open_databases", "100"),
+ MaxDbsOpen = list_to_integer(
+ couch_config:get("couchdb", "max_open_databases", "100")),
Self = self(),
ok = couch_config:register(
fun("couchdb", "database_dir") ->

0 comments on commit e183591

Please sign in to comment.