table_info on non-local mnesia table
Ulf Wiger
ulf.wiger@REDACTED
Wed Oct 28 09:05:45 CET 2009
I recently came across the problem that calling
mnesia:table_info(Tab, size) will return 0 if the table
does not reside locally. This behaviour is not obvious from
the documentation, nor is the remedy:
Calling
mnesia:activity(Type, fun() ->
mnesia:table_info(Tab,size)
end, mnesia_frag),
will always return the correct value, even if the table
isn't fragmented.
I consider this a bug. Mnesia should detect that the table
is remote and act accordingly, rather than returning a bogus
value.
BR,
Ulf W
--
Ulf Wiger
CTO, Erlang Training & Consulting Ltd
http://www.erlang-consulting.com
More information about the erlang-bugs
mailing list