[erlang-questions] Mnesia transactions and locking

Joel Reymont joelr1@REDACTED
Tue Jun 12 14:22:27 CEST 2007


On Jun 12, 2007, at 12:48 PM, Ulf Wiger (TN/EAB) wrote:

> It acquires locks as it goes along, or when the user
> specifically asks for a lock.

This is a fine description but how does Mnesia determine whether to  
lock a table or a record?

 From my inspection of the sources it seems that a table lock is used  
for writes and record locks are used for certain types of reads.

Is this correct? Is a table lock always used for writing?

	Thanks, Joel

http://topdog.cc      - EasyLanguage to C# translator
http://wagerlabs.com  - Blog

More information about the erlang-questions mailing list