You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2012/07/30 17:55:22 UTC
git commit: COUCHDB-1491 - cleanup view tables
Updated Branches:
refs/heads/master 41205000c -> ce7204b7e
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.
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/ce7204b7
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/ce7204b7
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/ce7204b7
Branch: refs/heads/master
Commit: ce7204b7eb64ac98d4445130fc4e647ed5181da9
Parents: 4120500
Author: Robert Newson <rn...@apache.org>
Authored: Mon Jul 30 16:54:16 2012 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Mon Jul 30 16:54:16 2012 +0100
----------------------------------------------------------------------
src/couch_index/src/couch_index_server.erl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/ce7204b7/src/couch_index/src/couch_index_server.erl
----------------------------------------------------------------------
diff --git a/src/couch_index/src/couch_index_server.erl b/src/couch_index/src/couch_index_server.erl
index 3a0b436..48fa8e4 100644
--- a/src/couch_index/src/couch_index_server.erl
+++ b/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);