aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_db_util.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-02-13 18:36:00 +0100
committerRickard Green <[email protected]>2017-03-02 16:59:41 +0100
commitee7494d5d5c3388a8bb1f012f6411a90f89d8ea6 (patch)
tree2cc65d5941843e1742b6a50d4800a9bd6b055703 /erts/emulator/beam/erl_db_util.h
parent0d6dc895744c34c9c52fd42f4801a8a941864ae3 (diff)
downloadotp-ee7494d5d5c3388a8bb1f012f6411a90f89d8ea6.tar.gz
otp-ee7494d5d5c3388a8bb1f012f6411a90f89d8ea6.tar.bz2
otp-ee7494d5d5c3388a8bb1f012f6411a90f89d8ea6.zip
Rename fixation count in ets table to avoid confusion
Diffstat (limited to 'erts/emulator/beam/erl_db_util.h')
-rw-r--r--erts/emulator/beam/erl_db_util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_db_util.h b/erts/emulator/beam/erl_db_util.h
index 3f507b559f..60dedd5713 100644
--- a/erts/emulator/beam/erl_db_util.h
+++ b/erts/emulator/beam/erl_db_util.h
@@ -213,7 +213,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 */
+ erts_smp_refc_t fix_count;/* fixation counter */
#ifdef ERTS_SMP
erts_smp_rwmtx_t rwlock; /* rw lock on table */
erts_smp_mtx_t fixlock; /* Protects fixations,megasec,sec,microsec */
@@ -263,7 +263,7 @@ typedef struct db_table_common {
(DB_BAG | DB_SET | DB_DUPLICATE_BAG)))
#define IS_TREE_TABLE(Status) (!!((Status) & \
DB_ORDERED_SET))
-#define NFIXED(T) (erts_smp_refc_read(&(T)->common.ref,0))
+#define NFIXED(T) (erts_smp_refc_read(&(T)->common.fix_count,0))
#define IS_FIXED(T) (NFIXED(T) != 0)
/*