This is an automated email from the ASF dual-hosted git repository. jaydoane pushed a commit to branch time-unit-parameterization in repository https://gitbox.apache.org/repos/asf/couchdb-ets-lru.git
commit cd8777bcc754e32fe64d58d57fbc516934f9738e Author: Brian Mitchell <br...@cloudant.com> AuthorDate: Tue Oct 15 10:02:55 2013 -0400 Fix a bug related to the change in 5aab9df --- src/ets_lru.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ terminate(_Reason, St) -> 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