summaryrefslogtreecommitdiff
path: root/oslo_messaging
diff options
context:
space:
mode:
authorDmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>2023-02-13 18:24:20 +0100
committerDmitriy Rabotyagov <noonedeadpunk@gmail.com>2023-02-14 15:20:00 +0000
commit115cfb5b7cff2a9803d64d02b98250b7b0fc09f0 (patch)
treeb3af9f62da5329b53e521be64cadc83e36a6aca5 /oslo_messaging
parent687dea2e65814606bece8041fe94fb2674d2590b (diff)
downloadoslo-messaging-115cfb5b7cff2a9803d64d02b98250b7b0fc09f0.tar.gz
Fix typo in quorum-related variables for RabbitMQ
In [1] there was a typo made in variable names. To prevent even futher awkwardness regarding variable naming, we fix typo and publish a release note for ones that already using variables in their deployments. [1] https://review.opendev.org/c/openstack/oslo.messaging/+/831058 Change-Id: Icc438397c11521f3e5e9721f85aba9095e0831c2
Diffstat (limited to 'oslo_messaging')
-rw-r--r--oslo_messaging/_drivers/impl_rabbit.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/oslo_messaging/_drivers/impl_rabbit.py b/oslo_messaging/_drivers/impl_rabbit.py
index c61393c..d00a6ab 100644
--- a/oslo_messaging/_drivers/impl_rabbit.py
+++ b/oslo_messaging/_drivers/impl_rabbit.py
@@ -174,7 +174,8 @@ rabbit_opts = [
'or dead-lettered (if a DLX exchange has been configured) '
'Used only when rabbit_quorum_queue is enabled, '
'Default 0 which means dont set a limit.'),
- cfg.IntOpt('rabbit_quroum_max_memory_length',
+ cfg.IntOpt('rabbit_quorum_max_memory_length',
+ deprecated_name='rabbit_quroum_max_memory_length',
default=0,
help='By default all messages are maintained in memory '
'if a quorum queue grows in length it can put memory '
@@ -182,7 +183,8 @@ rabbit_opts = [
'of messages in the quorum queue. '
'Used only when rabbit_quorum_queue is enabled, '
'Default 0 which means dont set a limit.'),
- cfg.IntOpt('rabbit_quroum_max_memory_bytes',
+ cfg.IntOpt('rabbit_quorum_max_memory_bytes',
+ deprecated_name='rabbit_quroum_max_memory_bytes',
default=0,
help='By default all messages are maintained in memory '
'if a quorum queue grows in length it can put memory '
@@ -835,8 +837,8 @@ class Connection(object):
def _get_quorum_configurations(self, driver_conf):
"""Get the quorum queue configurations"""
delivery_limit = driver_conf.rabbit_quorum_delivery_limit
- max_memory_length = driver_conf.rabbit_quroum_max_memory_length
- max_memory_bytes = driver_conf.rabbit_quroum_max_memory_bytes
+ max_memory_length = driver_conf.rabbit_quorum_max_memory_length
+ max_memory_bytes = driver_conf.rabbit_quorum_max_memory_bytes
return QuorumMemConfig(delivery_limit, max_memory_length,
max_memory_bytes)