summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/DtxAck.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-05-01 19:59:57 +0000
committerAlan Conway <aconway@apache.org>2009-05-01 19:59:57 +0000
commit91e3b712f13fcbf3834ae547bd05254738dfed8e (patch)
tree36265cf107759f8fe309f02a3a3dba84dfb4bef2 /cpp/src/qpid/broker/DtxAck.cpp
parentf3cec6986a366d133a08647279a38393a9769718 (diff)
downloadqpid-python-91e3b712f13fcbf3834ae547bd05254738dfed8e.tar.gz
Replace std::list with std::deque for SemanticState::unacked - more efficient, improves latency.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@770802 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/DtxAck.cpp')
-rw-r--r--cpp/src/qpid/broker/DtxAck.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/DtxAck.cpp b/cpp/src/qpid/broker/DtxAck.cpp
index bc7d662afb..c32c699421 100644
--- a/cpp/src/qpid/broker/DtxAck.cpp
+++ b/cpp/src/qpid/broker/DtxAck.cpp
@@ -26,7 +26,7 @@ using std::bind2nd;
using std::mem_fun_ref;
using namespace qpid::broker;
-DtxAck::DtxAck(const qpid::framing::SequenceSet& acked, std::list<DeliveryRecord>& unacked)
+DtxAck::DtxAck(const qpid::framing::SequenceSet& acked, DeliveryRecords& unacked)
{
remove_copy_if(unacked.begin(), unacked.end(), inserter(pending, pending.end()),
not1(bind2nd(mem_fun_ref(&DeliveryRecord::coveredBy), &acked)));
@@ -36,7 +36,7 @@ bool DtxAck::prepare(TransactionContext* ctxt) throw()
{
try{
//record dequeue in the store
- for (ack_iterator i = pending.begin(); i != pending.end(); i++) {
+ for (DeliveryRecords::iterator i = pending.begin(); i != pending.end(); i++) {
i->dequeue(ctxt);
}
return true;