[erlang-questions] mnesia:dirty_update_counter returns 'ok' in R14B04

Ahmed Omar spawn.think@REDACTED
Tue Jan 17 12:18:49 CET 2012


I can't reproduce your issue, can you give more details about which system
you use, how you create the table, mnesia:info() if possible

3> mnesia:create_table(test).
{aborted,{badarg,test}}
4> mnesia:create_table(test,[]).
{atomic,ok}
5> mnesia:dirty_update_counter(test, all, 0).
0
6> mnesia:dirty_update_counter(test, all, 1).
1
7> mnesia:dirty_read(test, all).
[{test,all,1}]


On Mon, Jan 16, 2012 at 2:13 PM, Jamie Brandon <jamie@REDACTED
> wrote:

> The docs state that mnesia:dirty_update_counter should return NewVal
> (
> http://www.erlang.org/documentation/doc-5.8.5/lib/mnesia-4.5/doc/html/mnesia.html#dirty_update_counter-2
> ).
>
> In fact, I get:
>
> (smarkets@REDACTED)7>
> mnesia:dirty_read(external_eid, all).
> [{external_eid,all,3235}]
> (smarkets@REDACTED)8>
> mnesia:dirty_update_counter(external_eid, all, 1).
> ok
> (smarkets@REDACTED)9>
> mnesia:dirty_read(external_eid, all).
> [{external_eid,all,3236}]
>
> This is not particularly helpful :-|
>
> Can anyone shed any light on this? The table is created with default
> options.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



-- 
Best Regards,
- Ahmed Omar
http://nl.linkedin.com/in/adiaa
Follow me on twitter
@spawn_think <http://twitter.com/#!/spawn_think>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120117/df953f08/attachment.htm>


More information about the erlang-questions mailing list