From 4fbbc6ecf68bd8f118f4a6165c8f5bfca2c3c8b6 Mon Sep 17 00:00:00 2001 From: Kenneth Anthony Giusti Date: Fri, 7 Oct 2011 14:21:48 +0000 Subject: QPID-3346: move message group feature into trunk. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1180050 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/QueueFlowLimit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/broker/QueueFlowLimit.cpp') diff --git a/cpp/src/qpid/broker/QueueFlowLimit.cpp b/cpp/src/qpid/broker/QueueFlowLimit.cpp index fcf8d089f9..f15bb45c01 100644 --- a/cpp/src/qpid/broker/QueueFlowLimit.cpp +++ b/cpp/src/qpid/broker/QueueFlowLimit.cpp @@ -377,7 +377,8 @@ void QueueFlowLimit::setState(const qpid::framing::FieldTable& state) ++i; fcmsg.add(first, last); for (SequenceNumber seq = first; seq <= last; ++seq) { - QueuedMessage msg(queue->find(seq)); // fyi: msg.payload may be null if msg is delivered & unacked + QueuedMessage msg; + queue->find(seq, msg); // fyi: may not be found if msg is acquired & unacked bool unique; unique = index.insert(std::pair >(seq, msg.payload)).second; // Like this to avoid tripping up unused variable warning when NDEBUG set -- cgit v1.2.1