Erlang/OTP Forums

Author Message

<  Erlang questions mailing list  ~  Mnesia problems

dietmar at ast.dfs.de
Posted: Mon Mar 21, 2005 1:27 pm Reply with quote
Guest
Hi

I am trying to processing a table using

DoAction = fun() -> mnesia:foldl(Action,[],bufferedMessages,write)end,

The DoAction is a little bit too long and complicated to be listed here
but maybe you know what's going
on here ?


I get:

transaction DoAction aborted
{badarg,[{ets,match_object,[377,{{locks,bufferedMessages,'______WHOLETABLE_____'},'_'}]},{mnesia_locker,need_lock,4},{mnesia_locker,rlock,3},{mnesia,read,5},{mnesia,do_foldl,8},{mnesia,foldl,6},{mnesia_tm,apply_fun,3},{mnesia_tm,execute_transaction,5},{cmmc_db,processBufferedMessages,0},{cmmc_com,decode,1}]}



Regards


Dietmar


Post generated using Mail2Forum (http://m2f.sourceforge.net)
dgud at erix.ericsson.se
Posted: Mon Mar 21, 2005 3:07 pm Reply with quote
Guest
Hmm, that shouldn't happen, looks like a bug, can you email me the
code or a snippet of it that reproduces the fault.

/Dan

Dietmar Schaefer writes:
> Hi
>
> I am trying to processing a table using
>
> DoAction = fun() -> mnesia:foldl(Action,[],bufferedMessages,write)end,
>
> The DoAction is a little bit too long and complicated to be listed here
> but maybe you know what's going
> on here ?
>
>
> I get:
>
> transaction DoAction aborted
> {badarg,[{ets,match_object,[377,{{locks,bufferedMessages,'______WHOLETABLE_____'},'_'}]},{mnesia_locker,need_lock,4},{mnesia_locker,rlock,3},{mnesia,read,5},{mnesia,do_foldl,8},{mnesia,foldl,6},{mnesia_tm,apply_fun,3},{mnesia_tm,execute_transaction,5},{cmmc_db,processBufferedMessages,0},{cmmc_com,decode,1}]}
>
>
>
> Regards
>
>
> Dietmar


Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum