mnesia:transaction aborting
Peter J Etheridge
petergi@REDACTED
Mon Jan 25 03:56:51 CET 2021
Dear Fellow Erlangers,
I run;
mnesia:transaction(fun() ->
case mnesia:wread({pw_usr_record, pw_un}) of
[Usr] ->
Usr = #pw_usr_record{pw_un = Username,
pw_pas = Password},
mnesia:write(pw_usr_record, Usr,
write),
catch mnesia:abort("aborted")
end
end),
result;
mnesia:info().
---> Processes holding locks Processes waiting for locks Participant
transactions Coordinator transactions Uncertain transactions Active
tables System info in version "4.17", debug level = verbose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210125/0e44807c/attachment.htm>
More information about the erlang-questions
mailing list