[erlang-questions] Some mnesia oddity

Nicolas Thauvin <>
Fri Aug 29 11:47:53 CEST 2008


Hi folks,

  We found a strange mnesia behavior here...

Some mnesia:write operations after a mnesia:delete_object seem to not have  
the expected result when executed in the same transaction.

See attached example file:
1 - We fill a test_table
2 - In the same transaction, we read all records, delete them, and write  
them back (do not ask why :))
3 - Surprise! Only a subset of them can be read afterwards

Same result in R11 and R12.

It works if the delete_object and write operations are in separate  
transactions... But who knows what can happen between them...

Can someone explain this?

Thanks,

-- Nicolas Thauvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oddity.erl
Type: application/octet-stream
Size: 1418 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080829/b41f1fae/attachment.obj>


More information about the erlang-questions mailing list