diff options
| author | Gordon Sim <gsim@apache.org> | 2008-12-01 19:49:23 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-12-01 19:49:23 +0000 |
| commit | a03d20dd52beb9588bcff3fa0924489372172f18 (patch) | |
| tree | 2e8c965ab87bed09a4d55b58df0b0d0f25774a52 /cpp/src/qpid/broker/NullMessageStore.cpp | |
| parent | 89b492cf4847ac930cd112ca16ae9e2786d4976f (diff) | |
| download | qpid-python-a03d20dd52beb9588bcff3fa0924489372172f18.tar.gz | |
QPID-1497: Ensure policy count and size reflect transactionality of dequeues
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@722200 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/NullMessageStore.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/NullMessageStore.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/NullMessageStore.cpp b/cpp/src/qpid/broker/NullMessageStore.cpp index 5a4b23217c..4c13c2adef 100644 --- a/cpp/src/qpid/broker/NullMessageStore.cpp +++ b/cpp/src/qpid/broker/NullMessageStore.cpp @@ -32,6 +32,8 @@ namespace broker{ const std::string nullxid = ""; +class SimpleDummyCtxt : public TransactionContext {}; + class DummyCtxt : public TPCTransactionContext { const std::string xid; @@ -112,7 +114,7 @@ uint32_t NullMessageStore::outstandingQueueAIO(const PersistableQueue& ) { std::auto_ptr<TransactionContext> NullMessageStore::begin() { - return std::auto_ptr<TransactionContext>(); + return std::auto_ptr<TransactionContext>(new SimpleDummyCtxt()); } std::auto_ptr<TPCTransactionContext> NullMessageStore::begin(const std::string& xid) |
