Shutdown view group on ddoc update

If a design document is updated (or deleted), its associated
view groups that are open will be shutdown as soon as they
finish serving all their requests. Not doing this prevented
a proper cleanup of outdated view files (file descriptor leaks)
and unncessary processes in the system (old view groups and index
file ref counters, for e.g.).

COUCHDB-1309
2 files changed
tree: 42e4c55bca313ce2fc7fdebb1c4be4a154def4f1
  1. src/
  2. Makefile.am