summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2012-02-17 09:10:52 -0500
committerRobert Newson <robert.newson@cloudant.com>2012-11-14 18:11:34 +0000
commitbf4d46be7037ddea375bdaf2bab067e29f2c423f (patch)
treefc7c26d335c96d12c053319c81a02e5334e06d68
parentf7adbbe008ec2c22d48f61876a159804c4772d2e (diff)
Don't touch the old couch_lru ets table
It doesn't exist. BugzID: 13299
-rw-r--r--apps/couch/src/couch_server.erl3
1 files changed, 0 insertions, 3 deletions
diff --git a/apps/couch/src/couch_server.erl b/apps/couch/src/couch_server.erl
index 618fa76a..b035f77a 100644
--- a/apps/couch/src/couch_server.erl
+++ b/apps/couch/src/couch_server.erl
@@ -293,13 +293,11 @@ handle_call({delete, DbName, _Options}, _From, Server) ->
[#db{main_pid=Pid, compactor_pid=Froms}] when is_list(Froms) ->
% icky hack of field values - compactor_pid used to store clients
true = ets:delete(couch_dbs, DbName),
- true = ets:delete(couch_lru, DbName),
exit(Pid, kill),
[gen_server:reply(F, not_found) || F <- Froms],
Server#server{dbs_open=Server#server.dbs_open - 1};
[#db{main_pid=Pid}] ->
true = ets:delete(couch_dbs, DbName),
- true = ets:delete(couch_lru, DbName),
exit(Pid, kill),
Server#server{dbs_open=Server#server.dbs_open - 1}
end,
@@ -345,7 +343,6 @@ handle_info({'EXIT', Pid, Reason}, #server{dbs_open=DbsOpen}=Server) ->
ok
end,
true = ets:delete(couch_dbs, DbName),
- true = ets:delete(couch_lru, DbName),
{noreply, Server#server{dbs_open=DbsOpen - 1}};
[] ->
{noreply, Server}