basho/riak_kv — pull request #458 by jtuple (2012-12-28 02:40:11+00:00)
Title: Make index_hashtree process exit when related vnode exits

When a riak_kv_vnode exits, the associated riak_kv_index_hashtree should also shutdown because a future riak_kv_vnode process will try to create a new riak_kv_index_hashtree. If the old index_hashtree is still alive, it retains a lock to the LevelDB instance, causing the newer index_hashtree to fail endlessly when trying to open the LevelDB instance.

This commit changes riak_kv_index_hashtree to monitor the associated riak_kv_vnode, shutting down if the riak_kv_vnode ever exits.