[erlang-questions] mnesia:dirty_write 'function not exported'

Khitai Pang khitai.pang@REDACTED
Sun Apr 10 23:04:29 CEST 2016

Dear list,

I met a strange problem that I can't figure out why:

When I use

ok = mnesia:drity_write(#my_record{key=Key, value=Value})

I get

** {'function not exported',

but when I use

Fun = fun() ->
               mnesia:write(#my_record{key=Key, value=Value})
{atomic, ok} = mnesia:transaction(Fun)

Everything works fine.

Any idea?


More information about the erlang-questions mailing list