Skip to content

Commit 582c865

Browse files
Fix ets:member locking
1 parent c388a2d commit 582c865

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

erts/emulator/beam/erl_db_hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,8 +1522,8 @@ static int db_member_hash(DbTable *tbl, Eterm key, Eterm *ret)
15221522
erts_rwmtx_t* lck;
15231523

15241524
hval = MAKE_HASH(key);
1525-
ix = hash_to_ix(tb, hval);
15261525
lck = RLOCK_HASH(tb, hval);
1526+
ix = hash_to_ix(tb, hval);
15271527
b1 = BUCKET(tb, ix);
15281528

15291529
while(b1 != 0) {

0 commit comments

Comments
 (0)