couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r962964 - /couchdb/trunk/src/couchdb/couch_server.erl
Date Sun, 11 Jul 2010 01:00:50 GMT
Author: kocolosk
Date: Sun Jul 11 01:00:50 2010
New Revision: 962964

URL: http://svn.apache.org/viewvc?rev=962964&view=rev
Log:
deleting a DB while it was being opened would crash couch_server

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=962964&r1=962963&r2=962964&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_server.erl (original)
+++ couchdb/trunk/src/couchdb/couch_server.erl Sun Jul 11 01:00:50 2010
@@ -326,7 +326,7 @@ handle_call({delete, DbName, _Options}, 
             couch_util:shutdown_sync(Pid),
             true = ets:delete(couch_dbs_by_name, DbName),
             true = ets:delete(couch_dbs_by_pid, Pid),
-            [gen_server:send_result(F, not_found) || F <- Froms],
+            [gen_server:reply(F, not_found) || F <- Froms],
             true;
         [{_, {opened, Pid, LruTime}}] ->
             couch_util:shutdown_sync(Pid),



Mime
View raw message