Permalink
Browse files

Terminate the btree cache of the old view group after compaction.

  • Loading branch information...
1 parent e53d37f commit 4c92720a5b1fb6607a09bef592345fd5d80d40fa @fdmanana committed Oct 22, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/couchdb/couch_view_group.erl
@@ -205,6 +205,7 @@ handle_cast({compact_done, #group{current_seq=NewSeq} = NewGroup},
unlink(CompactorPid),
receive {'EXIT', CompactorPid, normal} -> ok after 0 -> ok end,
unlink(OldFd),
+ term_cache_trees:stop(Group#group.btree_cache),
couch_ref_counter:drop(RefCounter),
{ok, NewRefCounter} = couch_ref_counter:start([NewGroup#group.fd]),
case Group#group.db of

0 comments on commit 4c92720

Please sign in to comment.