Update DEB-specs to 2013.2 version
[openstack-build/cinder-build.git] / rpm / SOURCES / 0004-avoid-code-path-causing-qpid-exchange-leaks.patch
1 From 9e65a17f9143616548c722231d0f4399c142bcd5 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?P=C3=A1draig=20Brady?= <pbrady@redhat.com>
3 Date: Wed, 17 Jul 2013 16:03:44 +0100
4 Subject: [PATCH] avoid code path causing qpid exchange leaks
5
6 Always assume amqp_rpc_single_reply_queue is True,
7 so that the problematic code path is ignored.
8 The issue is discussed at https://pad.lv/1178375
9 ---
10  cinder/openstack/common/rpc/amqp.py |    3 ++-
11  1 files changed, 2 insertions(+), 1 deletions(-)
12
13 diff --git a/cinder/openstack/common/rpc/amqp.py b/cinder/openstack/common/rpc/amqp.py
14 index 832511c..fd621c4 100644
15 --- a/cinder/openstack/common/rpc/amqp.py
16 +++ b/cinder/openstack/common/rpc/amqp.py
17 @@ -590,7 +590,8 @@ def multicall(conf, context, topic, msg, timeout, connection_pool):
18  
19      # TODO(pekowski): Remove this flag and the code under the if clause
20      #                 in Havana.
21 -    if not conf.amqp_rpc_single_reply_queue:
22 +    # (p-draigbrady): This clause is disabled to avoid qpid exchange leaks
23 +    if False and not conf.amqp_rpc_single_reply_queue:
24          conn = ConnectionContext(conf, connection_pool)
25          wait_msg = MulticallWaiter(conf, conn, timeout)
26          conn.declare_direct_consumer(msg_id, wait_msg)