This is an automated email from the ASF dual-hosted git repository. davisp pushed a commit to branch optimize-ddoc-cache in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 9fbb086583639bb7a6c5e51419ad41ca3cfd8e46 Author: Paul J. Davis <[email protected]> AuthorDate: Thu Jul 6 14:12:01 2017 -0500 FIXUP: Remember to clear out the waiters list --- src/ddoc_cache/src/ddoc_cache_entry.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ddoc_cache/src/ddoc_cache_entry.erl b/src/ddoc_cache/src/ddoc_cache_entry.erl index db5e0b1..2660293 100644 --- a/src/ddoc_cache/src/ddoc_cache_entry.erl +++ b/src/ddoc_cache/src/ddoc_cache_entry.erl @@ -231,7 +231,8 @@ handle_info({'DOWN', _, _, Pid, Resp}, #st{key = Key, opener = Pid} = St) -> update_cache(St, Val), NewSt1 = St#st{ val = {open_ok, {ok, Val}}, - opener = start_timer() + opener = start_timer(), + waiters = undefined }, NewSt2 = update_lru(NewSt1), if not is_list(St#st.waiters) -> ok; true -> -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
