diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-05-06 19:29:34 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-05-07 10:17:21 +0200 |
commit | dc177967363d16c155042dbaa2c911f59f0efd55 (patch) | |
tree | 05643e592657ff127893191596aeeaae4ebff860 /erts/emulator/beam/erl_db_tree.c | |
parent | f436d84d990bb06e6bbbf55659d4f3a47bc1c556 (diff) | |
download | otp-dc177967363d16c155042dbaa2c911f59f0efd55.tar.gz otp-dc177967363d16c155042dbaa2c911f59f0efd55.tar.bz2 otp-dc177967363d16c155042dbaa2c911f59f0efd55.zip |
erts: ETS ordered_set cannot use it's optimization with Maps
The optimization cannot be used due to that the pattern cannot be ordered.
Diffstat (limited to 'erts/emulator/beam/erl_db_tree.c')
-rw-r--r-- | erts/emulator/beam/erl_db_tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_db_tree.c b/erts/emulator/beam/erl_db_tree.c index d90af46659..c7bccc78c3 100644 --- a/erts/emulator/beam/erl_db_tree.c +++ b/erts/emulator/beam/erl_db_tree.c @@ -2716,7 +2716,7 @@ static int key_given(DbTableTree *tb, Eterm pattern, TreeDbTerm **ret, *ret = this; return 1; } else if (partly_bound != NULL && key != am_Underscore && - db_is_variable(key) < 0) + db_is_variable(key) < 0 && !db_has_map(key)) *partly_bound = key; return 0; |