diff options
author | Alan Conway <aconway@apache.org> | 2009-05-01 19:59:57 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-05-01 19:59:57 +0000 |
commit | 91e3b712f13fcbf3834ae547bd05254738dfed8e (patch) | |
tree | 36265cf107759f8fe309f02a3a3dba84dfb4bef2 /cpp/src/qpid/broker/TxAccept.cpp | |
parent | f3cec6986a366d133a08647279a38393a9769718 (diff) | |
download | qpid-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/TxAccept.cpp')
-rw-r--r-- | cpp/src/qpid/broker/TxAccept.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/TxAccept.cpp b/cpp/src/qpid/broker/TxAccept.cpp index 73f365d509..ca128b1975 100644 --- a/cpp/src/qpid/broker/TxAccept.cpp +++ b/cpp/src/qpid/broker/TxAccept.cpp @@ -58,8 +58,8 @@ void TxAccept::RangeOps::commit() std::for_each(ranges.begin(), ranges.end(), bind(&RangeOp::commit, _1)); //now remove if isRedundant(): if (!ranges.empty()) { - ack_iterator i = ranges.front().range.start; - ack_iterator end = ranges.back().range.end; + DeliveryRecords::iterator i = ranges.front().range.start; + DeliveryRecords::iterator end = ranges.back().range.end; while (i != end) { if (i->isRedundant()) { i = unacked.erase(i); |