diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2012-06-19 12:57:15 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2012-06-19 12:57:15 +0000 |
| commit | 5083cef28cd7d1f594a7632ffec109567f5a3b2b (patch) | |
| tree | 3b1e3d822339fffed4bf1e9f010e2a2b5a20f3b6 /cpp/src/tests | |
| parent | 58337ca40df3a57a16cdee9b7f6b4fe0361b0018 (diff) | |
| download | qpid-python-5083cef28cd7d1f594a7632ffec109567f5a3b2b.tar.gz | |
QPID-3858: WIP: Solved race conditions affecting transactional publishing.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1351689 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests')
| -rw-r--r-- | cpp/src/tests/storePerftools/asyncPerf/SimplePersistableQueue.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/tests/storePerftools/asyncPerf/SimplePersistableQueue.cpp b/cpp/src/tests/storePerftools/asyncPerf/SimplePersistableQueue.cpp index 1a3eae4b43..be2b4c891b 100644 --- a/cpp/src/tests/storePerftools/asyncPerf/SimplePersistableQueue.cpp +++ b/cpp/src/tests/storePerftools/asyncPerf/SimplePersistableQueue.cpp @@ -354,13 +354,13 @@ SimplePersistableQueue::asyncEnqueue(qpid::broker::TxnHandle& th, qpid::asyncStore::AsyncOperation::MSG_ENQUEUE, &handleAsyncResult, &m_resultQueue)); + if (th.isValid()) { + th.incrOpCnt(); + } m_store->submitEnqueue(qm.enqHandle(), th, qac); ++m_asyncOpCounter; - if (th.isValid()) { - th.incrOpCnt(); - } return true; } @@ -376,13 +376,13 @@ SimplePersistableQueue::asyncDequeue(qpid::broker::TxnHandle& th, qpid::asyncStore::AsyncOperation::MSG_DEQUEUE, &handleAsyncResult, &m_resultQueue)); + if (th.isValid()) { + th.incrOpCnt(); + } m_store->submitDequeue(qm.enqHandle(), th, qac); ++m_asyncOpCounter; - if (th.isValid()) { - th.incrOpCnt(); - } return true; } |
