anchor.diff:  %%      used
   %%      Input:  A partition index
   %%      Return: An index that can be used as hashed key for retrieving the preflist
  --spec get_hashedkey_from_partition(partition()) -> integer().
  +-spec get_hashedkey_from_partition(partition()) -> number().
   get_hashedkey_from_partition(Partition) ->
       case Partition of
           0 ->
  
positive.code: %%      only primaries no matter down or up
  %%      Input:  A log id
  %%      Return: The primaries preflist
  -spec   get_preflist_from_logid(logid()) -> preflist().  
  get_preflist_from_logid(LogId) ->
      Partition = hd(LogId),
      HashedKey = get_hashedkey_from_partition(Partition),
  
negative.code: %%      Input:  LogId: A log id
  %%              Service: The service in the riak_core application
  %%      Return: The active primaries preflist
  -spec get_apl_from_logid(logid(), atom()) -> preflist().  
  get_apl_from_logid(LogId, Service) ->
      Partition = hd(LogId),
      HashedKey = get_hashedkey_from_partition(Partition),
  