aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/external.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-09-18 17:15:19 +0200
committerSverker Eriksson <[email protected]>2017-11-15 20:10:33 +0100
commitfe720f6b2051c9bf8ff303f857c3db0a84b1c050 (patch)
tree6782f769a8e28c21c55dffda538c862ca38d73c0 /erts/emulator/beam/external.c
parentc8a6219d1f6c678f8421b1062ff633487d52bf04 (diff)
downloadotp-fe720f6b2051c9bf8ff303f857c3db0a84b1c050.tar.gz
otp-fe720f6b2051c9bf8ff303f857c3db0a84b1c050.tar.bz2
otp-fe720f6b2051c9bf8ff303f857c3db0a84b1c050.zip
erts: Refactor connection_id in ErtsDistExternal
Break out from 'flags' into new dedicated 'connection_id' just for simplicity. Also changed flags to low bits and that affected enif_binary_to_term.
Diffstat (limited to 'erts/emulator/beam/external.c')
-rw-r--r--erts/emulator/beam/external.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/external.c b/erts/emulator/beam/external.c
index 9230e1d8ab..3b851087d1 100644
--- a/erts/emulator/beam/external.c
+++ b/erts/emulator/beam/external.c
@@ -654,7 +654,7 @@ erts_prepare_dist_ext(ErtsDistExternal *edep,
edep->flags |= ERTS_DIST_EXT_DFLAG_HDR;
*connection_id = dep->connection_id;
- edep->flags |= (dep->connection_id & ERTS_DIST_EXT_CON_ID_MASK);
+ edep->connection_id = dep->connection_id;
if (ep[1] != DIST_HEADER) {
if (edep->flags & ERTS_DIST_EXT_DFLAG_HDR)
@@ -868,7 +868,7 @@ bad_dist_ext(ErtsDistExternal *edep)
erts_dsprintf(dsbufp, ", %d=%T", i, edep->attab.atom[i]);
}
erts_send_warning_to_logger_nogl(dsbufp);
- erts_kill_dist_connection(dep, ERTS_DIST_EXT_CON_ID(edep));
+ erts_kill_dist_connection(dep, edep->connection_id);
}
}