anchor.diff:  do_handoff(TargetNode, StateData=#state{idx=Idx, mod=Mod, modstate=ModState}) ->
       case Mod:is_empty(ModState) of
           true ->
  +            io:format("~p dh empty~n",[Idx]),
               delete_and_exit(StateData);
           false ->
  +            io:format("~p dh nonempty~n",[Idx]),
               riak_handoff_sender:start_link(TargetNode, Idx, all),
               {next_state,active,StateData#state{handoff_q=[]},?TIMEOUT}
       end.
  
positive.code:     end.
  
  %% @private
  do_fold(Fun, Acc0, _State=#state{mod=Mod, modstate=ModState}) ->
      Mod:fold(ModState, Fun, Acc0).
  
  %% @private
  
negative.code: do_list_handoff(TargetNode, BKeyList, StateData=#state{idx=Idx}) ->
      case BKeyList of
          [] ->
              io:format("~p dLh empty~n",[Idx]),
              delete_and_exit(StateData);
          _ ->
              io:format("~p dLh nonempty~n",[Idx]),
              riak_handoff_sender:start_link(TargetNode, Idx, BKeyList),
              {next_state,active,StateData#state{handoff_q=[]},?TIMEOUT}
      end.
  
  %% @private
  delete_and_exit(StateData=#state{idx=Idx,mod=Mod, modstate=ModState}) ->
      io:format("~p del and exit~n",[Idx]),
      ok = Mod:drop(ModState),
      {stop, normal, StateData}.
  
  