Deleting rows in Mnesia

Thomas Schwarzkopf tschwarzkopf@REDACTED
Tue Jul 20 18:57:04 CEST 2010


Hi,

when I try to delete a row in a Mnesia table like this:

F = fun() -> mnesia:delete({sometable, somekey}) end.
mnesia:transaction(F).

returns

{atomic, ok}

even if somekey does not exist. Why is this?
I would expect an aborted transaction like in the case of a non-existing
tablename.

Thanks

Thomas


More information about the erlang-questions mailing list