[erlang-questions] mnesia clear_table() bug ?

Dan Gudmundsson <>
Mon Sep 19 19:18:49 CEST 2011


That is because I use [d]ets:match_delete(Tab, '_') instead of
[d]ets:delete_all_objects(Tab)
Will fix in next release.

Thanks

/Dan

On Fri, Sep 9, 2011 at 8:28 PM, KukHyun Lee <> wrote:

> Hi.
> This is disc_only_copies table.
>
> Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4]
> [async-threads:0] [hipe] [kernel-poll:false]
>
> Eshell V5.8.4  (abort with ^G)
> ...
>
> ()103> mnesia:table_info(table, size).
> 151944
> ()104> mnesia:table_info(table, memory).
> 16295224
> ()105> mnesia:clear_table(table).
> {atomic,ok}
> ()106> mnesia:table_info(table, size).
> 0
> ()107> mnesia:table_info(table, memory).
> 16295224
>
> Why did not changed table's memory? Is this a bug?
> How can i set a table to zero memory.
>
> Thanks,
> KukHyun
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110919/5045cecd/attachment.html>


More information about the erlang-questions mailing list