dets

Random bad_object_header mnesia/dets error

♀尐吖头ヾ 提交于 2019-12-11 04:22:23
问题 I am having a very weird error with mnesia. I have about 10 tables that mnesia is recording, and usually it works fine. However, in a certain place in my code, whenever I try to read from a particular table (trying to read from other tables is fine) I get a DETS error. I reduced my code to {atomic, ok} = mnesia:transaction(fun() -> [Entry] = mnesia:read(table_name, Key), ok end) I have a try / catch block around the transaction, and the error I get is this: error:{badmatch, {aborted, {