diff options
author | Kim van der Riet <kpvdr@apache.org> | 2012-06-01 15:30:01 +0000 |
---|---|---|
committer | Kim van der Riet <kpvdr@apache.org> | 2012-06-01 15:30:01 +0000 |
commit | ad9bebb1157f009151973cf721fdebdd663d39e3 (patch) | |
tree | 3b8dc0a9fa3de3b88bcbb82572a06cb579fa3002 /cpp/src/qpid/asyncStore/AsyncStoreImpl.cpp | |
parent | 220841d24ff48f27339000e887d5465a53c39013 (diff) | |
download | qpid-python-ad9bebb1157f009151973cf721fdebdd663d39e3.tar.gz |
WIP: Non-transactional message path in place. Transactions not working.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1345240 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/asyncStore/AsyncStoreImpl.cpp')
-rw-r--r-- | cpp/src/qpid/asyncStore/AsyncStoreImpl.cpp | 32 |
1 files changed, 5 insertions, 27 deletions
diff --git a/cpp/src/qpid/asyncStore/AsyncStoreImpl.cpp b/cpp/src/qpid/asyncStore/AsyncStoreImpl.cpp index 5a4905fef6..083034acc4 100644 --- a/cpp/src/qpid/asyncStore/AsyncStoreImpl.cpp +++ b/cpp/src/qpid/asyncStore/AsyncStoreImpl.cpp @@ -246,9 +246,9 @@ AsyncStoreImpl::submitDestroy(qpid::broker::EventHandle& eventHandle, void AsyncStoreImpl::submitDestroy(qpid::broker::EventHandle& eventHandle, - qpid::broker::TxnHandle& txnHandle, - qpid::broker::ResultCallback resultCb, - qpid::broker::BrokerAsyncContext* brokerCtxt) + qpid::broker::TxnHandle& txnHandle, + qpid::broker::ResultCallback resultCb, + qpid::broker::BrokerAsyncContext* brokerCtxt) { AsyncOperation* op = new AsyncOperation(AsyncOperation::EVENT_DESTROY, dynamic_cast<qpid::broker::IdHandle*>(&eventHandle), @@ -260,18 +260,6 @@ AsyncStoreImpl::submitDestroy(qpid::broker::EventHandle& eventHandle, void AsyncStoreImpl::submitEnqueue(qpid::broker::EnqueueHandle& enqHandle, - qpid::broker::ResultCallback resultCb, - qpid::broker::BrokerAsyncContext* brokerCtxt) -{ - AsyncOperation* op = new AsyncOperation(AsyncOperation::MSG_ENQUEUE, - dynamic_cast<qpid::broker::IdHandle*>(&enqHandle), - resultCb, - brokerCtxt); - m_operations.submit(op); -} - -void -AsyncStoreImpl::submitEnqueue(qpid::broker::EnqueueHandle& enqHandle, qpid::broker::TxnHandle& txnHandle, qpid::broker::ResultCallback resultCb, qpid::broker::BrokerAsyncContext* brokerCtxt) @@ -282,18 +270,8 @@ AsyncStoreImpl::submitEnqueue(qpid::broker::EnqueueHandle& enqHandle, resultCb, brokerCtxt); m_operations.submit(op); -} - -void -AsyncStoreImpl::submitDequeue(qpid::broker::EnqueueHandle& enqHandle, - qpid::broker::ResultCallback resultCb, - qpid::broker::BrokerAsyncContext* brokerCtxt) -{ - AsyncOperation* op = new AsyncOperation(AsyncOperation::MSG_DEQUEUE, - dynamic_cast<qpid::broker::IdHandle*>(&enqHandle), - resultCb, - brokerCtxt); - m_operations.submit(op); +//delete op; +//delete brokerCtxt; } void |