| summaryrefslogtreecommitdiff | 
diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/io/timed_cache.erl | 15 | ||||
| -rw-r--r-- | src/query/character_turn.erl | 2 | 
2 files changed, 14 insertions, 3 deletions
| diff --git a/src/io/timed_cache.erl b/src/io/timed_cache.erl index ec58caa..8fa2861 100644 --- a/src/io/timed_cache.erl +++ b/src/io/timed_cache.erl @@ -88,10 +88,21 @@ fetch (DB, Owner, ObjectID) ->     end.  invalidate (DB, Owner, ObjectID) -> -   case ets:lookup(DB, {Owner, ObjectID}) of -      [] -> ok; +   case ets:lookup(db, {Owner, ObjectID}) of +      [] -> +         io:format +         ( +            "~nInvalidation request on non-stored entry: ~p.~n", +            [{DB, Owner, ObjectID}] +         ), +         ok;        [{_, TimerPID, _}] -> +         io:format +         ( +            "~nInvalidation request on stored entry: ~p.~n", +            [{DB, Owner, ObjectID}] +         ),           gen_server:stop(TimerPID)     end. diff --git a/src/query/character_turn.erl b/src/query/character_turn.erl index bee8bf3..624e4d0 100644 --- a/src/query/character_turn.erl +++ b/src/query/character_turn.erl @@ -240,8 +240,8 @@ handle (Req) ->     database_shim:commit     (        battlemap_instance_db, -      <<"0">>,        Input#input.player_id, +      <<"0">>,        NQueryState#query_state.battlemap_inst     ),     %%%% Reply | 


