diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2010-07-11 01:00:50 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2010-07-11 01:00:50 +0000 |
commit | 10ba6ce1529f04e567e3a71a9898b2c9a623dd51 (patch) | |
tree | 753a74c6d4cbdec3d427225cfd7ecbd596d20743 /src/couchdb/couch_server.erl | |
parent | ba34253d2bb6fa561a247fb0ed2f5acd7cd66e7f (diff) |
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
Diffstat (limited to 'src/couchdb/couch_server.erl')
-rw-r--r-- | src/couchdb/couch_server.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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), |