diff options
author | Sverker Eriksson <[email protected]> | 2017-09-04 20:53:00 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-09-05 14:14:35 +0200 |
commit | 98bd5f66a03b945916baa2a91c4aba3c837676d1 (patch) | |
tree | aaa42e530b4fd15fd4f5073b4224935d4472dcd1 /erts/emulator/beam/erl_db_util.h | |
parent | 040bdce67f88d833bfb59adae130a4ffb4c180f0 (diff) | |
download | otp-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.h | 3 |
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; |