[erlang-questions] Mnesia ActivityId unique on all nodes?

Ulf Wiger (TN/EAB) <>
Tue Jun 26 14:34:15 CEST 2007


The ActivityId (for transactions) includes the 
Pid of the process initiating the transaction
and a serial incremented for each transaction.

For dirty and ets operations, the ActivityId
will include the Pid, but is otherwise constant.
In other words, it will be the same for all
dirty ops executed by the same process.

So the answer is: it depends on what you want
to uniquely identify, but you can not rely on
it uniquely identifying one particular table
event in any case (since one transaction can
result in many table events, even on the same
table.)

BR,
Ulf W 

> -----Original Message-----
> From:  
> [mailto:] On Behalf Of Joel Reymont
> Sent: den 26 juni 2007 13:37
> To: Erlang Questions
> Subject: [erlang-questions] Mnesia ActivityId unique on all nodes?
> 
> Is the ActivityId supplied in Mnesia events unique across all 
> Mnesia nodes?
> 
> 	Thanks, Joel
> 
> --
> http://topdog.cc      - EasyLanguage to C# compiler
> http://wagerlabs.com  - Blog
> 
> 
> 
> 
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 



More information about the erlang-questions mailing list