summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2009-01-19 21:07:26 +0000
committerDamien F. Katz <damien@apache.org>2009-01-19 21:07:26 +0000
commite18359140f647a67874b2cfff5cf71980a2ca2f2 (patch)
treec4e12f82b5f5592c17323844c645e374da763ee1 /src/couchdb
parentc63f493ae1e26f8ff55307906261dbe5c51e1004 (diff)
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
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_server.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/couchdb/couch_server.erl b/src/couchdb/couch_server.erl
index f0e85734..c576fc55 100644
--- a/src/couchdb/couch_server.erl
+++ b/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") ->