qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject svn commit: r894652 - /qpid/branches/0.5.x-dev/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java
Date Wed, 30 Dec 2009 15:48:40 GMT
Author: robbie
Date: Wed Dec 30 15:48:39 2009
New Revision: 894652

URL: http://svn.apache.org/viewvc?rev=894652&view=rev
Log:
QPID-2209: update the move/copy operations to perform the same durability checks as other
areas of the broker, to prevent FailedDequeueException when attempting to remove a persistent
message that doesnt have an entry in the store

Modified:
    qpid/branches/0.5.x-dev/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java

Modified: qpid/branches/0.5.x-dev/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java
URL: http://svn.apache.org/viewvc/qpid/branches/0.5.x-dev/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java?rev=894652&r1=894651&r2=894652&view=diff
==============================================================================
--- qpid/branches/0.5.x-dev/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java
(original)
+++ qpid/branches/0.5.x-dev/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java
Wed Dec 30 15:48:39 2009
@@ -923,7 +923,7 @@
             {
                 AMQMessage message = entry.getMessage();
 
-                if (message.isPersistent() && toQueue.isDurable())
+                if (message.isPersistent())
                 {
                     store.enqueueMessage(storeContext, toQueue, message.getMessageId());
                 }
@@ -1014,7 +1014,7 @@
             {
                 AMQMessage message = entry.getMessage();
 
-                if (message.isReferenced() && message.isPersistent() && toQueue.isDurable())
+                if (message.isReferenced() && message.isPersistent())
                 {
                     store.enqueueMessage(storeContext, toQueue, message.getMessageId());
                 }



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message