Mnesia, more questions
Ulf Wiger (AL/EAB)
Wed Aug 31 10:48:51 CEST 2005
Sorry Klacke. I should know better than to criticize your
code after only a 10 second perusal. I missed the check
for transaction level. <blush/>
> -----Original Message-----
> [mailto:]On Behalf Of Hakan Mattsson
> Sent: den 31 augusti 2005 10:09
> Subject: Re: Mnesia, more questions
> On Tue, 30 Aug 2005, Ulf Wiger wrote:
> UW> Den 2005-08-30 17:21:26 skrev Claes Wikstom <>:
> UW> > Ulf Wiger (AL/EAB) wrote:
> UW> > > But this solution doesn't handle transaction aborts.
> UW> > >
> UW> >
> UW> > yes it does
> UW> >
> 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