From f71a9c37caec4b1282f362ef4276bac740e28d8d Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 11 Dec 2006 10:44:03 +0000 Subject: 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 --- cpp/lib/broker/TxPublish.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/lib/broker/TxPublish.cpp') diff --git a/cpp/lib/broker/TxPublish.cpp b/cpp/lib/broker/TxPublish.cpp index 0de5fbb200..49dd8abd89 100644 --- a/cpp/lib/broker/TxPublish.cpp +++ b/cpp/lib/broker/TxPublish.cpp @@ -22,11 +22,11 @@ using namespace qpid::broker; -TxPublish::TxPublish(Message::shared_ptr _msg) : msg(_msg) {} +TxPublish::TxPublish(Message::shared_ptr _msg, const std::string* const _xid) : msg(_msg), xid(_xid) {} bool TxPublish::prepare(TransactionContext* ctxt) throw(){ try{ - for_each(queues.begin(), queues.end(), Prepare(ctxt, msg, 0)); + for_each(queues.begin(), queues.end(), Prepare(ctxt, msg, xid)); return true; }catch(...){ std::cout << "TxPublish::prepare() - Failed to prepare" << std::endl; -- cgit v1.2.1