diff options
author | Sverker Eriksson <[email protected]> | 2018-10-22 20:21:49 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-10-23 12:36:30 +0200 |
commit | 3dc37254016825d027f8e3c7fac0a0f32d0d57e0 (patch) | |
tree | dd4f75eac38ff1ab5cacbbfe6de4dae45edff92f /erts/emulator/beam/erl_db_hash.c | |
parent | 8f2dfc574968c9d0e8484e5e87940579806815db (diff) | |
download | otp-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.c | 4 |
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 */ |