anchor.diff:      Trees3 = [{IdxN, hashtree:close(Tree)} || {IdxN, Tree} <- Trees2],
       State#state{trees=Trees3}.
   
  -get_all_locks(Type, Index, Pid) ->
  -    case riak_core_entropy_manager:get_lock(Type, Pid) of
  +get_all_locks(Service, Type, Index, Pid) ->
  +    case riak_core_entropy_manager:get_lock(Service,Type, Pid) of
           ok ->
               case maybe_get_vnode_lock(Type, Index, Pid) of
                   ok ->
  
positive.code:     end.
  
  -spec maybe_rebuild(state()) -> state().
  maybe_rebuild(State=#state{lock=undefined, built=true, expired=true, index=Index}) ->
      Self = self(),
      Pid = spawn_link(fun() ->
                               receive
  
negative.code:                                      ok
                               end
                       end),
      Locked = get_all_locks(Service, build, Index, Pid),
      case Locked of
          true ->
              State2 = clear_tree(State),
  