| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-12-28 14:53:30 +0100 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-12-28 14:53:30 +0100 | 
| commit | 41b04971e55a6b8b989c43cf780b2ad2ae66c2fc (patch) | |
| tree | 135ba048106bb2e73a75d84abe41367968163f1a /src/io | |
| parent | 583dfe90bd9ff99c9de67eeb8438f3b4e826c8a4 (diff) | |
Fixes mixup between owner and object id.
Diffstat (limited to 'src/io')
| -rw-r--r-- | src/io/timed_cache.erl | 15 | 
1 files changed, 13 insertions, 2 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. | 


