From 9d718c2348708b0b27ce9fb9fcbf05c4b0a997cc Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 27 Sep 2006 16:44:02 +0000 Subject: Moved ack tests to basic class, added test for requeueing on recovery. Implemented requeuing on recovery. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@450504 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/broker/src/Channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/broker/src/Channel.cpp') diff --git a/cpp/broker/src/Channel.cpp b/cpp/broker/src/Channel.cpp index b49635e026..4fb6a52b99 100644 --- a/cpp/broker/src/Channel.cpp +++ b/cpp/broker/src/Channel.cpp @@ -173,7 +173,6 @@ void Channel::ack(u_int64_t deliveryTag, bool multiple){ void Channel::recover(bool requeue){ if(requeue){ - //TODO: need to set redelivered flag for_each(unacknowledged.begin(), unacknowledged.end(), Requeue()); unacknowledged.clear(); }else{ @@ -188,6 +187,7 @@ bool Channel::MatchAck::operator()(AckRecord& record) const{ } void Channel::Requeue::operator()(AckRecord& record) const{ + record.msg->redeliver(); record.queue->deliver(record.msg); } -- cgit v1.2.1