aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_db_util.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-02-13 18:22:39 +0100
committerRickard Green <[email protected]>2017-03-02 16:59:40 +0100
commit0d6dc895744c34c9c52fd42f4801a8a941864ae3 (patch)
tree0897454769a576412c8ddf6605d9dfd5883929e4 /erts/emulator/beam/erl_db_util.h
parent39b43dd10605f60d580ba9a73136713a776c635d (diff)
downloadotp-0d6dc895744c34c9c52fd42f4801a8a941864ae3.tar.gz
otp-0d6dc895744c34c9c52fd42f4801a8a941864ae3.tar.bz2
otp-0d6dc895744c34c9c52fd42f4801a8a941864ae3.zip
Introduce references as table identifiers
Diffstat (limited to 'erts/emulator/beam/erl_db_util.h')
-rw-r--r--erts/emulator/beam/erl_db_util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_db_util.h b/erts/emulator/beam/erl_db_util.h
index 471fefe3cb..3f507b559f 100644
--- a/erts/emulator/beam/erl_db_util.h
+++ b/erts/emulator/beam/erl_db_util.h
@@ -212,6 +212,7 @@ typedef struct db_fixation {
*/
typedef struct db_table_common {
+ erts_smp_refc_t refc; /* reference count of table struct */
erts_smp_refc_t ref; /* fixation counter */
#ifdef ERTS_SMP
erts_smp_rwmtx_t rwlock; /* rw lock on table */
@@ -225,6 +226,7 @@ typedef struct db_table_common {
Uint64 heir_started_interval; /* To further identify the heir */
Eterm the_name; /* an atom */
Eterm id; /* atom | integer */
+ Binary *btid;
DbTableMethod* meth; /* table methods */
erts_smp_atomic_t nitems; /* Total number of items in table */
erts_smp_atomic_t memory_size;/* Total memory size. NOTE: in bytes! */