aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2019-04-10 15:53:51 +0200
committerSverker Eriksson <[email protected]>2019-04-10 15:53:51 +0200
commite987f2abac0691999469f9a93e0f822b02e7119a (patch)
tree891279858d81bd624a95d158d961f16c347528b1 /erts
parent45bb3d43fdba5b085fdd2f944277784ec18e60a8 (diff)
downloadotp-e987f2abac0691999469f9a93e0f822b02e7119a.tar.gz
otp-e987f2abac0691999469f9a93e0f822b02e7119a.tar.bz2
otp-e987f2abac0691999469f9a93e0f822b02e7119a.zip
erts: Revert creation 0 as wildcard in node_table_cmp
This is a partial revert of bf7c722bd3b30e04a56c2d369fd9f5501a8316d0. It does not make sense to treat 0 as a wild card in cmp function for the hash table as creation is part of the hash calculation.
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/erl_node_tables.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_node_tables.c b/erts/emulator/beam/erl_node_tables.c
index 49dea8919b..11df871763 100644
--- a/erts/emulator/beam/erl_node_tables.c
+++ b/erts/emulator/beam/erl_node_tables.c
@@ -805,8 +805,7 @@ static int
node_table_cmp(void *venp1, void *venp2)
{
return ((((ErlNode *) venp1)->sysname == ((ErlNode *) venp2)->sysname) &&
- ((((ErlNode *) venp1)->creation == ((ErlNode *) venp2)->creation) ||
- (((ErlNode *) venp1)->creation == 0 || ((ErlNode *) venp2)->creation == 0))
+ ((((ErlNode *) venp1)->creation == ((ErlNode *) venp2)->creation))
? 0
: 1);
}