diff options
author | Gordon Sim <gsim@apache.org> | 2007-03-30 15:50:07 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-03-30 15:50:07 +0000 |
commit | 33d8343d134a391fa7d0a338fafad1a22ff58dc3 (patch) | |
tree | 7c8b9ef3ea62852eb38548be87f908b2892e12a2 /cpp/lib/broker/TxPublish.cpp | |
parent | 8fc571ee337add8f2c4ab1f1ebc0c4784c58e2bf (diff) | |
download | qpid-python-33d8343d134a391fa7d0a338fafad1a22ff58dc3.tar.gz |
Refactored the MessageStore interface to restrict visibility of broker core from store implementations.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@524139 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/TxPublish.cpp')
-rw-r--r-- | cpp/lib/broker/TxPublish.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/lib/broker/TxPublish.cpp b/cpp/lib/broker/TxPublish.cpp index 49dd8abd89..57993782d0 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, const std::string* const _xid) : msg(_msg), xid(_xid) {} +TxPublish::TxPublish(Message::shared_ptr _msg) : msg(_msg) {} bool TxPublish::prepare(TransactionContext* ctxt) throw(){ try{ - for_each(queues.begin(), queues.end(), Prepare(ctxt, msg, xid)); + for_each(queues.begin(), queues.end(), Prepare(ctxt, msg)); return true; }catch(...){ std::cout << "TxPublish::prepare() - Failed to prepare" << std::endl; @@ -45,11 +45,11 @@ void TxPublish::deliverTo(Queue::shared_ptr& queue){ queues.push_back(queue); } -TxPublish::Prepare::Prepare(TransactionContext* _ctxt, Message::shared_ptr& _msg, const string* const _xid) - : ctxt(_ctxt), msg(_msg), xid(_xid){} +TxPublish::Prepare::Prepare(TransactionContext* _ctxt, Message::shared_ptr& _msg) + : ctxt(_ctxt), msg(_msg){} void TxPublish::Prepare::operator()(Queue::shared_ptr& queue){ - queue->enqueue(ctxt, msg, xid); + queue->enqueue(ctxt, msg); } TxPublish::Commit::Commit(Message::shared_ptr& _msg) : msg(_msg){} |