anchor.diff:      ok.
   
   %% @private
  -code_change(_OldVsn, State, _Extra) ->
  +code_change(_, State, _) ->
       {ok, State}.
   
  
positive.code:          terminate/2,
           code_change/3]).
  
  -record(state, {}).
  
  -define(SERVER, ?MODULE).
  -ignore_xref([{start_link, 0}]).
  
negative.code: 
  %% @private
  init([]) ->
      %% TODO - check for errors when opening the dets table
      Statefile  = etorrent_config:fast_resume_file(),
      Statetable = dets:init_table(Statefile),
      InitState  = #state{table=Statetable},
      {ok, InitState}.
  
  handle_call({query_state, Id}, _From, State) ->
      #state{table=Table} = State,
      {value, Properties} = etorrent_table:get_torrent(Id),
      Torrentfile = proplists:get_value(filename, Properties),
      Reply = case dets:lookup(Table, Torrentfile) of
          [] ->
              unknown;
          [{_, FSPL}] when is_list(FSPL) ->
              {value, FSPL};
  	    [{_, St}] ->
              {value, upgrade(1, St)}
      end,
      {reply, Reply, State};
  
  handle_call(_, _, State) ->
      {reply, ok, State}.
  
  handle_cast(_, State) ->
      {noreply, State}.
  
  handle_info(_, State) ->
      {noreply, State}.
  
  %% @private
  