Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:22
rabbitmq-server
rabbitmq-server-3.7.27-compat.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rabbitmq-server-3.7.27-compat.patch of Package rabbitmq-server
diff -Ndurp rabbitmq-server-3.7.27/src/rabbit_queue_index.erl rabbitmq-server-3.7.27-compat/src/rabbit_queue_index.erl --- rabbitmq-server-3.7.27/src/rabbit_queue_index.erl 2020-07-22 19:52:25.000000000 +0300 +++ rabbitmq-server-3.7.27-compat/src/rabbit_queue_index.erl 2024-04-28 04:21:52.523570940 +0300 @@ -565,7 +565,7 @@ queue_name_to_dir_name(#resource { kind rabbit_misc:format("~.36B", [Num]). queue_name_to_dir_name_legacy(Name = #resource { kind = queue }) -> - <<Num:128>> = erlang:md5(term_to_binary_compat:term_to_binary_1(Name)), + <<Num:128>> = erlang:md5(term_to_binary(Name, [{minor_version, 1}])), rabbit_misc:format("~.36B", [Num]). queues_base_dir() -> diff -Ndurp rabbitmq-server-3.7.27/src/term_to_binary_compat.erl rabbitmq-server-3.7.27-compat/src/term_to_binary_compat.erl --- rabbitmq-server-3.7.27/src/term_to_binary_compat.erl 2020-07-22 19:52:25.000000000 +0300 +++ rabbitmq-server-3.7.27-compat/src/term_to_binary_compat.erl 1970-01-01 03:00:00.000000000 +0300 @@ -1,24 +0,0 @@ -%% The contents of this file are subject to the Mozilla Public License -%% Version 1.1 (the "License"); you may not use this file except in -%% compliance with the License. You may obtain a copy of the License -%% at https://www.mozilla.org/MPL/ -%% -%% Software distributed under the License is distributed on an "AS IS" -%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See -%% the License for the specific language governing rights and -%% limitations under the License. -%% -%% The Original Code is RabbitMQ. -%% -%% The Initial Developer of the Original Code is GoPivotal, Inc. -%% Copyright (c) 2017 Pivotal Software, Inc. All rights reserved. -%% - --module(term_to_binary_compat). - --include("rabbit.hrl"). - --export([term_to_binary_1/1]). - -term_to_binary_1(Term) -> - term_to_binary(Term, [{minor_version, 1}]). diff -Ndurp rabbitmq-server-3.7.27/test/term_to_binary_compat_prop_SUITE.erl rabbitmq-server-3.7.27-compat/test/term_to_binary_compat_prop_SUITE.erl --- rabbitmq-server-3.7.27/test/term_to_binary_compat_prop_SUITE.erl 2020-07-22 19:52:25.000000000 +0300 +++ rabbitmq-server-3.7.27-compat/test/term_to_binary_compat_prop_SUITE.erl 2024-04-28 04:22:40.074555127 +0300 @@ -71,7 +71,7 @@ prop_ensure_term_to_binary_defaults_to_v ?FORALL(Term, any(), begin Current = term_to_binary(Term), - Compat = term_to_binary_compat:term_to_binary_1(Term), + Compat = term_to_binary(Term, [{minor_version, 1}]), Current =:= Compat end). @@ -86,8 +86,7 @@ prop_term_to_binary_latin_atom(_Config) Length = length(LatinString), Atom = list_to_atom(LatinString), Binary = list_to_binary(LatinString), - <<131,100, Length:16, Binary/binary>> =:= - term_to_binary_compat:term_to_binary_1(Atom) + <<131,100, Length:16, Binary/binary>> =:= term_to_binary(Atom, [{minor_version, 1}]) end). queue_name_to_binary(Config) -> @@ -109,6 +108,6 @@ prop_queue_name_to_binary(_Config) -> 100, 0, 5, "queue", %% `queue` atom 109, NameBSize:32, QName/binary>>, %% Name binary Resource = rabbit_misc:r(VHost, queue, QName), - Current = term_to_binary_compat:term_to_binary_1(Resource), + Current = term_to_binary(Resource, [{minor_version, 1}]), Current =:= Expected end).
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