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

Jamie Brandon jamie@REDACTED
Tue Jan 17 16:34:32 CET 2012


The machine is a Debian Squeeze image running on VirtualBox.

The table is defined as:

-record(external_eid, {id, eid}).

setup() ->
  mnesia:create(external_eid, [{attributes, record_info(fields,
external_eid)}]).

More info:

(smarkets-env)vagrant@REDACTED:/vagrant$ uname -aLinux
vagrant-dev.corp.smarkets.com 2.6.32-5-686 #1 SMP Wed Jan 12 04:01:41
UTC 2011 i686 GNU/Linux

(smarkets-env)vagrant@REDACTED:/vagrant$ sudo dpkg --status erlang-dev
Package: erlang-dev
Status: install ok installed
Priority: optional
Section: interpreters
Installed-Size: 3176
Maintainer: Debian Erlang Packagers <pkg-erlang-devel@REDACTED>
Architecture: i386
Source: erlang
Version: 1:14.b.4-dfsg-1
Replaces: erlang (<< 1:14.b.4-dfsg-1), erlang-base (<<
1:14.b.4-dfsg-1), erlang-base-hipe (<< 1:14.b.4-dfsg-1),
erlang-examples (<< 1:14.b.4-dfsg-1), erlang-mode (<<
1:12.b.1-dfsg-2), erlang-nox (<< 1:14.b.4-dfsg-1), erlang-src (<<
1:14.b.4-dfsg-1), erlang-x11 (<< 1:14.b.4-dfsg-1)
Depends: erlang-base (= 1:14.b.4-dfsg-1) | erlang-base-hipe (= 1:14.b.4-dfsg-1)
Suggests: erlang, erlang-manpages, erlang-doc
Description: Erlang/OTP development libraries and headers
 The files for application development in Erlang. They include headers for
 all applications included into Erlang/OTP distribution and C interface
 libraries.
Homepage: http://www.erlang.org/

(smarkets-env)vagrant@REDACTED:/vagrant$ erl
Erlang R14B04 (erts-5.8.5) [source] [rq:1] [async-threads:0] [kernel-poll:false]

%%% I didn't commit the code that used mnesia:dirty_update_counter but
this is in the tip I was working from %%%

(smarkets@REDACTED)1> mnesia:info().
---> Processes holding locks <---
---> Processes waiting for locks <---
---> Participant transactions <---
---> Coordinator transactions <---
---> Uncertain transactions <---
---> Active tables <---
mkt_ord        : with 306      records occupying 31174    bytes on disc
mkt_acct       : with 245      records occupying 21180    bytes on disc
acct_order_arch: with 1285     records occupying 728653   bytes on disc
quote          : with 85       records occupying 4836     words of mem
acct_profit    : with 117      records occupying 4268     words of mem
cache_pair     : with 0        records occupying 286      words of mem
mealy_queue    : with 152      records occupying 100008   bytes on disc
acct_gexp      : with 96       records occupying 4146     words of mem
acct_deposit   : with 0        records occupying 286      words of mem
mealy_subscr   : with 0        records occupying 286      words of mem
mealy          : with 939      records occupying 1799739  bytes on disc
last_match     : with 2        records occupying 6039     bytes on disc
schema         : with 20       records occupying 2626     words of mem
acct_wdraw     : with 0        records occupying 286      words of mem
acct_outs      : with 0        records occupying 286      words of mem
mealy_migration: with 1        records occupying 298      words of mem
acct_order_full: with 114      records occupying 13750    words of mem
acct_pos       : with 96       records occupying 9600     words of mem
acct_couts     : with 0        records occupying 286      words of mem
uuid_seq       : with 11       records occupying 374      words of mem
===> System info in version "4.5", debug level = none <===
opt_disc. Directory "/vagrant/tmp/mnesia" is used.
use fallback at restart = false
running db nodes   = ['smarkets@REDACTED']
stopped db nodes   = []
master node tables = []
remote             = []
ram_copies         = [cache_pair,mealy_subscr]
disc_copies        = [acct_couts,acct_deposit,acct_gexp,acct_order_full,
                      acct_outs,acct_pos,acct_profit,acct_wdraw,
                      mealy_migration,quote,schema,uuid_seq]
disc_only_copies   = [acct_order_arch,last_match,mealy,mealy_queue,mkt_acct,
                      mkt_ord]
[{'smarkets@REDACTED',disc_copies}] = [uuid_seq,
                                                            acct_couts,
                                                            acct_pos,
                                                            acct_order_full,
                                                            mealy_migration,
                                                            acct_outs,
                                                            acct_wdraw,schema,
                                                            acct_deposit,
                                                            acct_gexp,
                                                            acct_profit,quote]
[{'smarkets@REDACTED',disc_only_copies}] = [last_match,
                                                                 mealy,
                                                                 mealy_queue,

acct_order_arch,
                                                                 mkt_acct,
                                                                 mkt_ord]
[{'smarkets@REDACTED',ram_copies}] = [mealy_subscr,
                                                           cache_pair]
2 transactions committed, 22 aborted, 0 restarted, 6889 logged to disc
0 held locks, 0 in queue; 0 local transactions, 0 remote
0 transactions waits for other nodes: []
ok



More information about the erlang-questions mailing list