You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2009/07/23 16:55:57 UTC

svn commit: r797092 - /couchdb/trunk/src/couchdb/couch_server.erl

Author: kocolosk
Date: Thu Jul 23 14:55:56 2009
New Revision: 797092

URL: http://svn.apache.org/viewvc?rev=797092&view=rev
Log:
use spawn to avoid recursive gen_server calls

Modified:
    couchdb/trunk/src/couchdb/couch_server.erl

Modified: couchdb/trunk/src/couchdb/couch_server.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_server.erl?rev=797092&r1=797091&r2=797092&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_server.erl (original)
+++ couchdb/trunk/src/couchdb/couch_server.erl Thu Jul 23 14:55:56 2009
@@ -147,7 +147,8 @@
     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]),