[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',
[{mnesia,drity_write,
[my_record,
{my_record,
...
but when I use
Fun = fun() ->
mnesia:write(#my_record{key=Key, value=Value})
end,
{atomic, ok} = mnesia:transaction(Fun)
Everything works fine.
Any idea?
Thanks
Khitai
More information about the erlang-questions
mailing list