Mnesia, more questions
Wed Aug 31 10:08:50 CEST 2005
On Tue, 30 Aug 2005, Ulf Wiger wrote:
UW> Den 2005-08-30 17:21:26 skrev Claes Wikstom <klacke@REDACTED>:
UW> > Ulf Wiger (AL/EAB) wrote:
UW> > > But this solution doesn't handle transaction aborts.
UW> > >
UW> > yes it does
UW> > /klacke
UW> ...since you pack and send only once apply(Fun,As)
UW> has returned?
UW> Presumably then, you don't allow nested calls to
UW> this transaction wrapper? An inner transaction
UW> could succeed, but an outer transaction restarts
UW> or aborts.
Klackes code ensures that the logging only occurs in
the outermost transaction. But despite that, his code
may produce spurious log entries as Mnesia may decide
to restart the transaction (in the verification phase
of the transaction just before the actual commit) after
the logging has been performed .
More information about the erlang-questions