aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_db_hash.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-10-22 20:21:49 +0200
committerSverker Eriksson <[email protected]>2018-10-23 12:36:30 +0200
commit3dc37254016825d027f8e3c7fac0a0f32d0d57e0 (patch)
treedd4f75eac38ff1ab5cacbbfe6de4dae45edff92f /erts/emulator/beam/erl_db_hash.c
parent8f2dfc574968c9d0e8484e5e87940579806815db (diff)
downloadotp-3dc37254016825d027f8e3c7fac0a0f32d0d57e0.tar.gz
otp-3dc37254016825d027f8e3c7fac0a0f32d0d57e0.tar.bz2
otp-3dc37254016825d027f8e3c7fac0a0f32d0d57e0.zip
erts: Refactor DbUpdateHandle with nicer types
Diffstat (limited to 'erts/emulator/beam/erl_db_hash.c')
-rw-r--r--erts/emulator/beam/erl_db_hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_db_hash.c b/erts/emulator/beam/erl_db_hash.c
index 61806876a7..f05a3b51c9 100644
--- a/erts/emulator/beam/erl_db_hash.c
+++ b/erts/emulator/beam/erl_db_hash.c
@@ -3103,7 +3103,7 @@ Ldone:
handle->dbterm = &b->dbterm;
handle->flags = flags;
handle->new_size = b->dbterm.size;
- handle->lck = lck;
+ handle->u.hash.lck = lck;
return 1;
}
@@ -3116,7 +3116,7 @@ db_finalize_dbterm_hash(int cret, DbUpdateHandle* handle)
DbTableHash *tb = &tbl->hash;
HashDbTerm **bp = (HashDbTerm **) handle->bp;
HashDbTerm *b = *bp;
- erts_rwmtx_t* lck = (erts_rwmtx_t*) handle->lck;
+ erts_rwmtx_t* lck = handle->u.hash.lck;
HashDbTerm* free_me = NULL;
ERTS_LC_ASSERT(IS_HASH_WLOCKED(tb, lck)); /* locked by db_lookup_dbterm_hash */