summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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") ->