summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/DeliveryRecord.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-12-11 10:44:03 +0000
committerGordon Sim <gsim@apache.org>2006-12-11 10:44:03 +0000
commitf71a9c37caec4b1282f362ef4276bac740e28d8d (patch)
treeeb71bd02eb1fa2e1fbe85b2658990a9e95cf4795 /cpp/lib/broker/DeliveryRecord.cpp
parenta52120056649103af256f1f34b5bc574582a7d96 (diff)
downloadqpid-python-f71a9c37caec4b1282f362ef4276bac740e28d8d.tar.gz
Allow xid to be associated with publication and acknowledgements.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@485594 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/DeliveryRecord.cpp')
-rw-r--r--cpp/lib/broker/DeliveryRecord.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/lib/broker/DeliveryRecord.cpp b/cpp/lib/broker/DeliveryRecord.cpp
index 9d02cb615e..19b01cc312 100644
--- a/cpp/lib/broker/DeliveryRecord.cpp
+++ b/cpp/lib/broker/DeliveryRecord.cpp
@@ -42,8 +42,12 @@ DeliveryRecord::DeliveryRecord(Message::shared_ptr _msg,
pull(true){}
-void DeliveryRecord::discard(TransactionContext* ctxt) const{
- queue->dequeue(ctxt, msg, 0);
+void DeliveryRecord::discard(TransactionContext* ctxt, const std::string* const xid) const{
+ queue->dequeue(ctxt, msg, xid);
+}
+
+void DeliveryRecord::discard() const{
+ discard(0, 0);
}
bool DeliveryRecord::matches(u_int64_t tag) const{