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

Oliver Korpilla Oliver.Korpilla@REDACTED
Sun Apr 10 23:18:43 CEST 2016


Hello, Khitai.

You misspelled "dirty" in your first version... 

Cheers,
Oliver
 
 

Gesendet: Sonntag, 10. April 2016 um 23:04 Uhr
Von: "Khitai Pang" <khitai.pang@REDACTED>
An: "Erlang-Questions Questions" <erlang-questions@REDACTED>
Betreff: [erlang-questions] mnesia:dirty_write 'function not exported'
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
_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list