summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/SemanticState.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-04-09 17:59:38 +0000
committerGordon Sim <gsim@apache.org>2008-04-09 17:59:38 +0000
commit363ed6d7e6a0986c49a9ae5d43954dfec08e7e8c (patch)
tree160ff8c184660acfad6b2905a8a3e4f00ad25e18 /cpp/src/qpid/broker/SemanticState.cpp
parentedaf94463aedcbe52870213b1e1db39ecf741731 (diff)
downloadqpid-python-363ed6d7e6a0986c49a9ae5d43954dfec08e7e8c.tar.gz
Handle the set-redelivered flag on the final version of the message.release command.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@646452 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SemanticState.cpp')
-rw-r--r--cpp/src/qpid/broker/SemanticState.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp
index 6f5577de5a..2251901340 100644
--- a/cpp/src/qpid/broker/SemanticState.cpp
+++ b/cpp/src/qpid/broker/SemanticState.cpp
@@ -625,14 +625,14 @@ void SemanticState::acquire(DeliveryId first, DeliveryId last, DeliveryIds& acqu
for_each(range.start, range.end, AcquireFunctor(acquired));
}
-void SemanticState::release(DeliveryId first, DeliveryId last)
+void SemanticState::release(DeliveryId first, DeliveryId last, bool setRedelivered)
{
AckRange range = findRange(first, last);
//release results in the message being added to the head so want
//to release in reverse order to keep the original transfer order
DeliveryRecords::reverse_iterator start(range.end);
DeliveryRecords::reverse_iterator end(range.start);
- for_each(start, end, mem_fun_ref(&DeliveryRecord::release));
+ for_each(start, end, bind2nd(mem_fun_ref(&DeliveryRecord::release), setRedelivered));
}
void SemanticState::reject(DeliveryId first, DeliveryId last)