From a15205d50c527da188c99b29d62df466369d6892 Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Wed, 18 Jan 2012 13:26:14 -0600 Subject: Use a match_spec() instead of a match_pattern() I misread the docs on what was expected for ets:select_receive/3. --- apps/couch/src/couch_proc_manager.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/couch/src/couch_proc_manager.erl b/apps/couch/src/couch_proc_manager.erl index d3072c71..7ac7c9df 100644 --- a/apps/couch/src/couch_proc_manager.erl +++ b/apps/couch/src/couch_proc_manager.erl @@ -152,7 +152,8 @@ iter_procs(Tab, Lang, Fun, Acc) when is_list(Lang) -> iter_procs(Tab, list_to_binary(Lang), Fun, Acc); iter_procs(Tab, Lang, Fun, Acc) -> Pattern = #proc{lang=Lang, client=nil, _='_'}, - case ets:select_reverse(Tab, Pattern, 25) of + MSpec = [{Pattern, [], ['$_']}], + case ets:select_reverse(Tab, MSpec, 25) of '$end_of_table' -> {not_found, Acc}; Continuation -> -- cgit v1.2.3