[erlang-questions] mnesia clear_table() bug ?

Dan Gudmundsson dgud@REDACTED
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 <kukhyun@REDACTED> 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)
> ...
>
> (db@REDACTED)103> mnesia:table_info(table, size).
> 151944
> (db@REDACTED)104> mnesia:table_info(table, memory).
> 16295224
> (db@REDACTED)105> mnesia:clear_table(table).
> {atomic,ok}
> (db@REDACTED)106> mnesia:table_info(table, size).
> 0
> (db@REDACTED)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
> erlang-questions@REDACTED
> 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.htm>


More information about the erlang-questions mailing list