diff options
author | John Högberg <[email protected]> | 2017-05-24 15:47:37 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2017-05-24 15:47:37 +0200 |
commit | a261e4f4eda13f6edb37349b18e096694a86e29a (patch) | |
tree | da510f7d0c5cbe22d0d9e67f639a911bdfebda76 /erts/emulator/beam | |
parent | 3473ecd83a7bbe7e0bebb865f25dddb93e3bf10f (diff) | |
download | otp-a261e4f4eda13f6edb37349b18e096694a86e29a.tar.gz otp-a261e4f4eda13f6edb37349b18e096694a86e29a.tar.bz2 otp-a261e4f4eda13f6edb37349b18e096694a86e29a.zip |
Identify db_hash_slot locks by their table name instead of slot index
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_db_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_db_hash.c b/erts/emulator/beam/erl_db_hash.c index 390369fdb9..036cc9d9e9 100644 --- a/erts/emulator/beam/erl_db_hash.c +++ b/erts/emulator/beam/erl_db_hash.c @@ -684,7 +684,7 @@ int db_create_hash(Process *p, DbTable *tbl) sizeof(DbTableHashFineLocks)); for (i=0; i<DB_HASH_LOCK_CNT; ++i) { erts_smp_rwmtx_init_opt_x(&tb->locks->lck_vec[i].lck, &rwmtx_opt, - "db_hash_slot", make_small(i)); + "db_hash_slot", tb->common.the_name); } /* This important property is needed to guarantee that the buckets * involved in a grow/shrink operation it protected by the same lock: |