anchor.diff:      end.
   
   %% @doc Read command: Returns the operations logged for Key
  -%%	Input: Key of the object to read
  -%%	Output: {vnode_id, Operations} | {error, Reason}
  +%%     Input: Key of the object to read
  +%%     Output: {vnode_id, Operations} | {error, Reason}
   handle_command({read, Key, Preflist}, _Sender, #state{partition=Partition, logs_map=Map}=State) ->
       case get_log_from_map(Map, Preflist) of
           {ok, Log} ->
  
positive.code:     end.
  
  %% @doc lookup_operations: Looks up for the operations logged for a particular key
  %%		Input:	Log: Identifier of the log
  %%				Key: Key to shich the operation belongs
  %%		Return:	List of all the logged operations 
  -spec lookup_operations(Log::term(), Key::term()) -> list() | {error, atom()}.
  lookup_operations(Log, Key) ->
      dets:lookup(Log, Key).
  
negative.code:     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.
  -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)->
  