summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-10-31 15:38:36 +0000
committerGordon Sim <gsim@apache.org>2006-10-31 15:38:36 +0000
commit537b97e030358dc8bb7ff59942e0ddac8e46e5bd (patch)
tree0eeea46f0b4af2523bd55e494e3437f34a71bfb3 /qpid/cpp/src
parent6121ec7f17056b1ec86ba5c59ece2b0356161ce4 (diff)
downloadqpid-python-537b97e030358dc8bb7ff59942e0ddac8e46e5bd.tar.gz
Added doc & unit tests.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@469530 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/broker/AccumulatedAck.cpp2
-rw-r--r--qpid/cpp/src/qpid/broker/TxPublish.h10
2 files changed, 11 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/AccumulatedAck.cpp b/qpid/cpp/src/qpid/broker/AccumulatedAck.cpp
index 060e940309..84ddcee556 100644
--- a/qpid/cpp/src/qpid/broker/AccumulatedAck.cpp
+++ b/qpid/cpp/src/qpid/broker/AccumulatedAck.cpp
@@ -25,7 +25,7 @@ void AccumulatedAck::update(u_int64_t tag, bool multiple){
if(multiple){
if(tag > range) range = tag;
//else don't care, it is already counted
- }else if(tag < range){
+ }else if(tag > range){
individual.push_back(tag);
}
}
diff --git a/qpid/cpp/src/qpid/broker/TxPublish.h b/qpid/cpp/src/qpid/broker/TxPublish.h
index 01bb573fe2..5076e0f56f 100644
--- a/qpid/cpp/src/qpid/broker/TxPublish.h
+++ b/qpid/cpp/src/qpid/broker/TxPublish.h
@@ -29,6 +29,16 @@
namespace qpid {
namespace broker {
+ /**
+ * Defines the behaviour for publish operations on a
+ * transactional channel. Messages are routed through
+ * exchanges when received but are not at that stage delivered
+ * to the matching queues, rather the queues are held in an
+ * instance of this class. On prepare() the message is marked
+ * enqueued to the relevant queues in the MessagesStore. On
+ * commit() the messages will be passed to the queue for
+ * dispatch or to be added to the in-memory queue.
+ */
class TxPublish : public TxOp, public Deliverable{
class Prepare{
Message::shared_ptr& msg;