Mnesia, more questions
Ulf Wiger (AL/EAB)
ulf.wiger@REDACTED
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/>
/Uffe
> -----Original Message-----
> From: owner-erlang-questions@REDACTED
> [mailto:owner-erlang-questions@REDACTED]On Behalf Of Hakan Mattsson
> Sent: den 31 augusti 2005 10:09
> To: erlang-questions@REDACTED
> Subject: Re: Mnesia, more questions
>
>
> On Tue, 30 Aug 2005, Ulf Wiger wrote:
>
> UW> Den 2005-08-30 17:21:26 skrev Claes Wikstom <klacke@REDACTED>:
> UW>
> 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>
> UW> ...since you pack and send only once apply(Fun,As)
> UW> has returned?
> UW>
> 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 .
>
> /Håkan
>
More information about the erlang-questions
mailing list