summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_server.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb/couch_server.erl')
-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 ddee80ad..388647b8 100644
--- a/src/couchdb/couch_server.erl
+++ b/src/couchdb/couch_server.erl
@@ -147,7 +147,8 @@ init([]) ->
hash_admin_passwords(),
ok = couch_config:register(
fun("admins") ->
- hash_admin_passwords()
+ % spawn here so couch_config doesn't try to call itself
+ spawn(fun() -> hash_admin_passwords() end)
end),
{ok, RegExp} = regexp:parse("^[a-z][a-z0-9\\_\\$()\\+\\-\\/]*$"),
ets:new(couch_dbs_by_name, [set, private, named_table]),