anchor.diff:      end.
   
   %% @doc open_logs: open one log per partition in which the vnode is primary
  -%%	Input:	LogFile: Partition concat with the atom log
  -%%			Preflists: A list with the preflist in which the vnode is involved
  -%%			Initial: Initial log identifier. Non negative integer. Consecutive ids for the logs. 
  -%%			Map: The ongoing map of preflist->log. dict() type.
  -%%	Return:	LogsMap: Maps the  preflist and actual name of the log in the system. dict() type.
  +%%      Input:  LogFile: Partition concat with the atom log
  +%%                      Preflists: A list with the preflist in which the vnode is involved
  +%%                      Initial: Initial log identifier. Non negative integer. Consecutive ids for the logs. 
  +%%                      Map: The ongoing map of preflist->log. dict() type.
  +%%      Return:         LogsMap: Maps the  preflist and actual name of the log in the system. dict() type.
   -spec open_logs(LogFile::string(), [preflist()], N::non_neg_integer(), Map::dict()) -> LogsMap::dict() | {error,reason()}.
   open_logs(_LogFile, [], _Initial, Map) -> Map;
   open_logs(LogFile, [Next|Rest], Initial, Map)->
  
positive.code:         end,
      lists:foldl(F, [], Preflist).
  
  %% @doc	get_log_from_map:	abstracts the get function of a key-value store
  %%							currently using dict
  %%		Input:	Map:	dict that representes the map
  %%				Preflist:	The key to search for.
  %%		Return:	The actual name of the log
  -spec get_log_from_map(dict(), preflist()) -> {ok, term()} | {error, no_log_for_preflist}.
  get_log_from_map(Map, FullPreflist) ->
      Preflist = remove_node_from_preflist(FullPreflist),
  
negative.code:             {error, no_log_for_preflist}
      end.
  
  %% @doc         join_logs: Recursive fold of all the logs stored in the vnode
  %%              Input:  Logs: A list of pairs {Preflist, Log}
  %%                              F: Function to apply when floding the log (dets)
  %%                              Acc: Folded data
  %%              Return: Folded data of all the logs.
  -spec join_logs(Map::[{preflist(), log()}], F::fun(), Acc::term()) -> term().
  join_logs([], _F, Acc) -> Acc;
  join_logs([Element|Rest], F, Acc) ->
  