Permalink
Browse files

Use a match_spec() instead of a match_pattern()

I misread the docs on what was expected for ets:select_receive/3.
  • Loading branch information...
1 parent c15440c commit a15205d50c527da188c99b29d62df466369d6892 @davisp davisp committed with Robert Newson Jan 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 ->

0 comments on commit a15205d

Please sign in to comment.