diff options
author | Robert Greig <rgreig@apache.org> | 2007-01-23 14:58:56 +0000 |
---|---|---|
committer | Robert Greig <rgreig@apache.org> | 2007-01-23 14:58:56 +0000 |
commit | dc7b9d865ac675219b97a5e247cd36589f34e5a0 (patch) | |
tree | 44c3de54f156b912f0482e663192ec0ee1897f52 | |
parent | 0c61121f08aed5f26e8bae3347112b80c4af7db3 (diff) | |
download | qpid-python-dc7b9d865ac675219b97a5e247cd36589f34e5a0.tar.gz |
QPID-314 : Patch supplied by Rob Godfrey - treat non-durable exclusive queues as auto-delete
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499041 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/broker/src/main/java/org/apache/qpid/server/handler/QueueDeclareHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/broker/src/main/java/org/apache/qpid/server/handler/QueueDeclareHandler.java b/java/broker/src/main/java/org/apache/qpid/server/handler/QueueDeclareHandler.java index 19df23b103..b62fe22b89 100644 --- a/java/broker/src/main/java/org/apache/qpid/server/handler/QueueDeclareHandler.java +++ b/java/broker/src/main/java/org/apache/qpid/server/handler/QueueDeclareHandler.java @@ -148,6 +148,6 @@ public class QueueDeclareHandler implements StateAwareMethodListener<QueueDeclar throws AMQException { AMQShortString owner = body.exclusive ? session.getContextKey() : null; - return new AMQQueue(body.queue, body.durable, owner, body.autoDelete, registry); + return new AMQQueue(body.queue, body.durable, owner, body.autoDelete || (!body.durable && body.exclusive), registry); } } |