相关疑难解决方法(0)

Erlang/ets:在得到"坏参数"后重置ets表?

我一直在学习如何使用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)?

*:我无法重现这个问题......但是当我试图做"其他事情"时,它经常发生.

erlang ets

5
推荐指数
1
解决办法
4090
查看次数

标签 统计

erlang ×1

ets ×1