Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
rabbit_common
0023-rabbit_misc-Generate-a-NEW_PID_EXT-based-b...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0023-rabbit_misc-Generate-a-NEW_PID_EXT-based-binary-in-c.patch of Package rabbit_common
From b0ac08f542b0feb9cd244358af50ab952e5656ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= <jean-sebastien@rabbitmq.com> Date: Mon, 8 Apr 2019 11:27:40 +0200 Subject: [PATCH] rabbit_misc: Generate a `NEW_PID_EXT`-based binary in compose_pid/4 The `creation` field might not fit into one byte which makes the `PID_EXT` format unsuitable for this case. The `NEW_PID_EXT` format is supported since Erlang 19.0, so it is safe to always use it, no matter the value of `creation`, because RabbitMQ 3.7+ requires at least Erlang 19.3+. References #313. --- src/rabbit_misc.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index db5fd03..78198c4 100644 --- a/src/rabbit_misc.erl +++ b/src/rabbit_misc.erl @@ -726,7 +726,7 @@ decompose_pid(Pid) when is_pid(Pid) -> compose_pid(Node, Cre, Id, Ser) -> <<131,NodeEnc/binary>> = term_to_binary(Node), - binary_to_term(<<131,103,NodeEnc/binary,Id:32,Ser:32,Cre:8>>). + binary_to_term(<<131,88,NodeEnc/binary,Id:32,Ser:32,Cre:32>>). version_compare(A, B, eq) -> ec_semver:eql(A, B); version_compare(A, B, lt) -> ec_semver:lt(A, B); -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor