aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-09-13 18:28:09 +0200
committerSverker Eriksson <[email protected]>2016-09-19 19:46:50 +0200
commitd100187bde4f3f555b4f3cd9561ec8c67a528895 (patch)
tree753b588421ecb3d67a700415a17686a2a04218c1
parent938781e3fe5eb5b9ffaf77292fea9d10f92b3050 (diff)
downloadotp-d100187bde4f3f555b4f3cd9561ec8c67a528895.tar.gz
otp-d100187bde4f3f555b4f3cd9561ec8c67a528895.tar.bz2
otp-d100187bde4f3f555b4f3cd9561ec8c67a528895.zip
erts: Unify reduction count for ets:select
to be per object as the other select-variants and not per table slot.
-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 698e4c301b..40df1c5356 100644
--- a/erts/emulator/beam/erl_db_hash.c
+++ b/erts/emulator/beam/erl_db_hash.c
@@ -1494,6 +1494,7 @@ static int db_select_chunk_hash(Process *p, DbTable *tbl,
match_list = CONS(hp, match_res, match_list);
++got;
}
+ --num_left;
}
current = current->next;
}
@@ -1511,7 +1512,6 @@ static int db_select_chunk_hash(Process *p, DbTable *tbl,
}
}
else { /* Key is variable */
- --num_left;
if ((slot_ix=next_slot(tb,slot_ix,&lck)) == 0) {
slot_ix = -1;