Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

COUCHDB-1491 - cleanup view tables

A bad pattern in couch_index_server for the EXIT case prevented the
cleanup of the BY_SIG table, causing subsequent view requests to
receive a dead pid.
  • Loading branch information...
commit ce7204b7eb64ac98d4445130fc4e647ed5181da9 1 parent 4120500
@rnewson rnewson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/couch_index/src/couch_index_server.erl
2  src/couch_index/src/couch_index_server.erl
@@ -127,7 +127,7 @@ handle_cast({reset_indexes, DbName}, State) ->
handle_info({'EXIT', Pid, Reason}, Server) ->
case ets:lookup(?BY_PID, Pid) of
- [{Pid, DbName, Sig}] ->
+ [{Pid, {DbName, Sig}}] ->
[{DbName, {DDocId, Sig}}] =
ets:match_object(?BY_DB, {DbName, {'$1', Sig}}),
rem_from_ets(DbName, Sig, DDocId, Pid);
Please sign in to comment.
Something went wrong with that request. Please try again.