[erlang-bugs] mnesia:clear_table bug

Dan Gudmundsson dgud@REDACTED
Thu Mar 19 10:28:30 CET 2009


Thanks, you are calling clear_table inside your transaction, you have never been
allowed to do that, but there is a bug in the error handling.


Patch mnesia.erl:
2393c2393
<       true -> %% Not allowed for clear_table
---
 >       _ -> %% Not allowed for clear_table

/Dan

Charles Ahn wrote:
> Is it just me or does mnesia:clear_table now crash the process it's in 
> when the table is already empty?
> 
> ** exception error: no match of right hand side value 
> {aborted,{{case_clause,{mnesia,{tid,12,<0.94.0>},
>                                                                                      
> {tidstore,69667,[],1}}},
>                                                                 
> [{mnesia,clear_table,1},
> 
> Charles
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-bugs



More information about the erlang-bugs mailing list