Mnesia bug?

Erlang Questions inswierlan@REDACTED
Mon Jan 19 15:23:38 CET 2004


Hi, I have a mnesia table(disc_only_copy) with 10 millions records and 100 fragments, in some cases the test1 query throw next exception:
This is a bug or mnesia disc file has been corrupted?

=ERROR REPORT==== 19-Jan-2004::10:28:00 ===
** dets: Bug was found when accessing table card_frag60,
** dets: operation was {match,<<>>,
                              [{{card,"33150969",
                                      '_',
                                      '_',
                                      '_',
                                      '_',
                                      '$5',
                                      '_',
                                      '_',
                                      '_',
                                      '_',
                                      '_',
                                      '_',
                                      '_',
                                      '_',
                                      '_',
                                      '_'},
                                [],
                                [{{'$5'}}]}],
                              default} and reply was 'EXIT'.


test1(CardKey) ->
 FilterList = [],
 Fun = fun() ->
  Table= #card{cardkey=CardKey, expirationdate='$5' ,_ = '_'},
  mnesia:select(card, [{Table, FilterList, [{{'$5'}}]}])
 end,

 Result = mnesia:activity(transaction, Fun, [], mnesia_frag),
 
 {ok,Result}.

Thanks,
Bernardo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20040119/4e138ea9/attachment.htm>


More information about the erlang-questions mailing list