summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-07-11 18:39:48 +0200
committernsensfel <SpamShield0@noot-noot.org>2018-07-11 18:39:48 +0200
commitb6e8cc8606b288970d7cdf577c6dd36950adac91 (patch)
treec8388d48e7d3fb8c8622181e4f0a4376477278b4 /src/shared/io/shr_timed_cache.erl
parentacb9dd3220a3edcac93aa11d1d74d008e2fb23ed (diff)
Separates read and write permissions.
Diffstat (limited to 'src/shared/io/shr_timed_cache.erl')
-rw-r--r--src/shared/io/shr_timed_cache.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/io/shr_timed_cache.erl b/src/shared/io/shr_timed_cache.erl
index b89de48..de3d094 100644
--- a/src/shared/io/shr_timed_cache.erl
+++ b/src/shared/io/shr_timed_cache.erl
@@ -38,7 +38,7 @@
-spec add_to_cache (atom(), any(), any()) -> any().
add_to_cache (DB, Owner, ObjectID) ->
{ok, TimerPID} = gen_server:start(?MODULE, {DB, {Owner, ObjectID}}, []),
- {ok, Data} = shr_database:fetch(DB, ObjectID),
+ {ok, Data} = shr_database:fetch(DB, ObjectID, Owner),
ets:insert(DB, {{Owner, ObjectID}, TimerPID, Data}),
Data.