Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rabbit_runtime_parameters: Remove dead 'value_global/2', 'value/4' (backport #11614) #11615

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Jul 3, 2024

rabbit_runtime_parameters:value_global/2 was only used in rabbit_nodes:cluster_name/0 since near the beginning of the commit history of the server and its usage was eliminated in 06932b9 (#3085, released in v3.8.17+ and v3.9.0+).

rabbit_runtime_parameters:value/4 doesn't appear to have been ever used since it was introduced near the beginning of the commit history. It may have been added just to mirror value_global/2's interface.

Eliminating these dead functions allows us to also eliminate a somewhat complicated function rabbit_db_rtparams:get_or_set/2.

This change is ported out of #10915 and was introduced there so we don't need to refactor these functions to handle database errors.


This is an automatic backport of pull request #11614 done by Mergify.

`rabbit_runtime_parameters:value_global/2` was only used in
`rabbit_nodes:cluster_name/0` since near the beginning of the commit
history of the server and its usage was eliminated in 06932b9
(#3085, released in v3.8.17+ and v3.9.0+).

`rabbit_runtime_parameters:value/4` doesn't appear to have been ever
used since it was introduced near the beginning of the commit history.
It may have been added just to mirror `value_global/2`'s interface.

Eliminating these dead functions allows us to also eliminate a somewhat
complicated function `rabbit_db_rtparams:get_or_set/2`.

(cherry picked from commit 427876b)
@michaelklishin michaelklishin merged commit 9578d03 into v3.13.x Jul 4, 2024
246 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v3.13.x/pr-11614 branch July 4, 2024 00:00
@michaelklishin
Copy link
Member

Note: this is not a functional change, so can even be included into Tanzu RabbitMQ 3.13.4 (but I will likely leave it out since it's also not particularly important to include).

@michaelklishin michaelklishin added this to the 3.13.5 milestone Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants