commit | cd8777bcc754e32fe64d58d57fbc516934f9738e | [log] [tgz] |
---|---|---|
author | Brian Mitchell <brian@cloudant.com> | Tue Oct 15 10:02:55 2013 -0400 |
committer | Robert Newson <rnewson@apache.org> | Mon Jul 28 17:21:19 2014 +0100 |
tree | 7a839f02e4b676e3ad24e87a07beb1340db6c801 | |
parent | aa817bd22eb0ecc95180a1f386856a2e7da4b12f [diff] |
Fix a bug related to the change in 5aab9df
diff --git a/src/ets_lru.erl b/src/ets_lru.erl index 5880bd5..dc68fb8 100644 --- a/src/ets_lru.erl +++ b/src/ets_lru.erl
@@ -114,8 +114,8 @@ handle_call({lookup, Key}, _From, St) -> Reply = case ets:lookup(St#st.objects, Key) of - [#entry{val=Val}] -> - accessed(St, Key), + [#entry{val=Val} | _] -> + accessed(Key, St), {ok, Val}; [] -> not_found