qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1532304 - /qpid/trunk/qpid/cpp/src/qpid/broker/Message.h
Date Tue, 15 Oct 2013 12:41:33 GMT
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


Mime
View raw message