From 10ba6ce1529f04e567e3a71a9898b2c9a623dd51 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Sun, 11 Jul 2010 01:00:50 +0000 Subject: deleting a DB while it was being opened would crash couch_server git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@962964 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_server.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb/couch_server.erl') diff --git a/src/couchdb/couch_server.erl b/src/couchdb/couch_server.erl index 43fd9044..88bd6107 100644 --- a/src/couchdb/couch_server.erl +++ b/src/couchdb/couch_server.erl @@ -326,7 +326,7 @@ handle_call({delete, DbName, _Options}, _From, Server) -> 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), -- cgit v1.2.3