[erlang-questions] How do Mnesia commits and rollbacks work?

Ulf Wiger <>
Fri Jul 6 23:13:20 CEST 2007


I doubt that too many have studied the external_copies
implementation. It's not an original mnesia feature. (-:

The callback module is called at commit. Before
commit, the data is written to the transaction store.
So if the transaction fails, the callback module
shouldn't be called at all.

BR,
Ulf W

2007/7/6, Joel Reymont <>:
> This is the gist of my question...
>
> If you set up an external_copies table and your transaction fails,
> will the external write callback be called twice?
>
> I will try to trace Mnesia to see what happens but I thought someone
> may have the answer.
>
>         Thanks, Joel
>
> --
> http://topdog.cc      - EasyLanguage to C# compiler
> http://wagerlabs.com  - Blog
>
>
>
>
>
>



More information about the erlang-questions mailing list