aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_db_util.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-09-04 20:53:00 +0200
committerSverker Eriksson <[email protected]>2017-09-05 14:14:35 +0200
commit98bd5f66a03b945916baa2a91c4aba3c837676d1 (patch)
treeaaa42e530b4fd15fd4f5073b4224935d4472dcd1 /erts/emulator/beam/erl_db_util.h
parent040bdce67f88d833bfb59adae130a4ffb4c180f0 (diff)
downloadotp-98bd5f66a03b945916baa2a91c4aba3c837676d1.tar.gz
otp-98bd5f66a03b945916baa2a91c4aba3c837676d1.tar.bz2
otp-98bd5f66a03b945916baa2a91c4aba3c837676d1.zip
erts: Fix faulty ASSERT of table fixation counter
Cannot read fix->counter safely without table lock.
Diffstat (limited to 'erts/emulator/beam/erl_db_util.h')
-rw-r--r--erts/emulator/beam/erl_db_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_db_util.h b/erts/emulator/beam/erl_db_util.h
index 19055c6110..7ce104a84c 100644
--- a/erts/emulator/beam/erl_db_util.h
+++ b/erts/emulator/beam/erl_db_util.h
@@ -220,6 +220,9 @@ typedef struct db_fixation {
Process* p;
} procs;
+ /* Number of fixations on table from procs.p
+ * Protected by table write lock or read lock + fixlock
+ */
Uint counter;
} DbFixation;