我一直在学习如何使用ets,但有一件困扰我的事情是,偶尔*ets:match
会抛出一个bad argument
......而且,从它们开始,所有后续调用(甚至以前工作的调用)也会抛出bad argument
:
> ets:match(Tid, { [$r | '$1'] }, 1). % this match works... % Then, at some point, this comes up: ** exception error: bad argument in function ets:match/3 called as ets:match(24589,{[114|'$1']},1) % And from then on, matches stop working: > ets:match(Tid, { [$r | '$1'] }, 1). ** exception error: bad argument in function ets:match/3 called as ets:match(24589,{[114|'$1']},1)
有没有办法"重置" ets
系统,以便我可以再次查询它(即从shell)?
*:我无法重现这个问题......但是当我试图做"其他事情"时,它经常发生.
归档时间: |
|
查看次数: |
4090 次 |
最近记录: |