anchor.diff:                              HONotSentFun = undefined;
                           resize_transfer ->
                               {ok, Ring} = riak_core_ring_manager:get_my_ring(),
  -                            HOFilter = resize_transfer_filter(Ring, Src, Target),
  +                            HOFilter = resize_transfer_filter(Ring, Mod, Src, Target),
                               HOAcc0 = [],
  -                            HONotSentFun = resize_transfer_notsent_fun(Ring, Src);
  +                            HONotSentFun = resize_transfer_notsent_fun(Ring, Mod, Src);
                           _ ->
                               HOFilter = none,
                               HOAcc0 = undefined,
  
positive.code:             end
      end.
  
  resize_transfer_notsent_fun(Ring, Src) ->
      fun(Key, Acc) -> record_seen_index(Ring, Src, Key, Acc) end.
  
  record_seen_index(Ring, Src, Key, Seen) ->
      try riak_core_ring:future_index(riak_core_util:chash_key(Key), Src, Ring) of
          FutureIndex -> [FutureIndex | Seen]
      catch
          error:_ -> Seen
  
negative.code:             end
      end.
  
  resize_transfer_filter(Ring, Mod, Src, Target) ->
      fun(K) ->
              {_, Hashed} = Mod:object_info(K),
              %% when the ring shrinks we may have data on this partition for which
              %% it is not possible to determine a future index because the position
              %% of Src in the current preflist is greater than the size of the future
  