diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2009-07-23 14:55:56 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2009-07-23 14:55:56 +0000 |
commit | 8cc8ce6626057ff62cbbede2a98043955ea27999 (patch) | |
tree | e3d51808925bdeb64f99dae7374480e1a0fa2fb9 /src | |
parent | cadc0493f5a1b53b4a4d29cb1dfbb69cf8f87490 (diff) |
use spawn to avoid recursive gen_server calls
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797092 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_server.erl | 3 |
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]), |