aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-03-24 18:21:26 +0100
committerSverker Eriksson <[email protected]>2017-03-24 18:21:26 +0100
commit44b5223489576a6ec719cbdb3bbdb31624326a32 (patch)
tree7bc9b30d8f3a2e0e1637b9ab369e7259a07b6b19 /erts
parent4dd2ccbdf374b4ce631d4d796bb690a55149e160 (diff)
downloadotp-44b5223489576a6ec719cbdb3bbdb31624326a32.tar.gz
otp-44b5223489576a6ec719cbdb3bbdb31624326a32.tar.bz2
otp-44b5223489576a6ec719cbdb3bbdb31624326a32.zip
Fix double hit bug of select/3 with bound key
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/erl_db_hash.c2
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 0d908fc2c8..b58fe7a185 100644
--- a/erts/emulator/beam/erl_db_hash.c
+++ b/erts/emulator/beam/erl_db_hash.c
@@ -1311,7 +1311,7 @@ static int match_traverse(Process* p, DbTableHash* tb,
else if (mpi.key_given) { /* Key is bound */
unlock_hash_function(lck);
if (current_list_pos == mpi.num_lists) {
- ret_value = on_loop_ended(context_ptr, slot_ix, got, iterations_left, &mpi.mp, ret);
+ ret_value = on_loop_ended(context_ptr, -1, got, iterations_left, &mpi.mp, ret);
goto done;
} else {
slot_ix = mpi.lists[current_list_pos].ix;