couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r797092 - /couchdb/trunk/src/couchdb/couch_server.erl
Date Thu, 23 Jul 2009 14:55:57 GMT
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]),



Mime
View raw message