summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2012-01-18 13:26:14 -0600
committerRobert Newson <robert.newson@cloudant.com>2012-11-14 17:28:26 +0000
commita15205d50c527da188c99b29d62df466369d6892 (patch)
tree2490d05594f47b5b484f6a9b23c78583ebf74c71
parentc15440cd74b04ba88f9af0a59f9505478d314d38 (diff)
Use a match_spec() instead of a match_pattern()
I misread the docs on what was expected for ets:select_receive/3.
-rw-r--r--apps/couch/src/couch_proc_manager.erl3
1 files changed, 2 insertions, 1 deletions
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 ->