You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2013/10/15 14:41:33 UTC

svn commit: r1532304 - /qpid/trunk/qpid/cpp/src/qpid/broker/Message.h

Author: gsim
Date: Tue Oct 15 12:41:32 2013
New Revision: 1532304

URL: http://svn.apache.org/r1532304
Log:
QPID-5227: correct setting of redelivered flag

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/Message.h

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/Message.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/Message.h?rev=1532304&r1=1532303&r2=1532304&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/Message.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/Message.h Tue Oct 15 12:41:32 2013
@@ -83,7 +83,7 @@ public:
     QPID_BROKER_EXTERN Message();
     QPID_BROKER_EXTERN ~Message();
 
-    bool isRedelivered() const { return deliveryCount; }
+    bool isRedelivered() const { return deliveryCount > 0; }
     void deliver() { ++deliveryCount; }
     void undeliver() { --deliveryCount; }
     int getDeliveryCount() const { return deliveryCount; }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org