diff options
author | Alan Conway <aconway@apache.org> | 2008-04-21 18:59:31 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-04-21 18:59:31 +0000 |
commit | 3097509ae43d93c1832638f80ba2ad5810fbef44 (patch) | |
tree | 96a6a73a5ab8a54aa49983f0f20881964d7418b8 /cpp/src/qpid/broker/DtxManager.cpp | |
parent | 69a3af237753a91e9cf8dbb98e890131d53e3ee3 (diff) | |
download | qpid-python-3097509ae43d93c1832638f80ba2ad5810fbef44.tar.gz |
Better workaround for boost::ptr_map incompatibility between boost 1.33 and 1.34, based on public properties of ptr::map types rather than version numbers.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@650221 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/DtxManager.cpp')
-rw-r--r-- | cpp/src/qpid/broker/DtxManager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/qpid/broker/DtxManager.cpp b/cpp/src/qpid/broker/DtxManager.cpp index fb6b3f019e..47f389a57d 100644 --- a/cpp/src/qpid/broker/DtxManager.cpp +++ b/cpp/src/qpid/broker/DtxManager.cpp @@ -29,7 +29,7 @@ using boost::intrusive_ptr; using qpid::sys::Mutex; -using namespace qpid::ptr_map; +using qpid::ptr_map_ptr; using namespace qpid::broker; using namespace qpid::framing; @@ -95,7 +95,7 @@ DtxWorkRecord* DtxManager::getWork(const std::string& xid) if (i == work.end()) { throw InvalidArgumentException(QPID_MSG("Unrecognised xid " << xid)); } - return get_pointer(i); + return ptr_map_ptr(i); } void DtxManager::remove(const std::string& xid) @@ -116,7 +116,7 @@ DtxWorkRecord* DtxManager::createWork(std::string xid) if (i != work.end()) { throw CommandInvalidException(QPID_MSG("Xid " << xid << " is already known (use 'join' to add work to an existing xid)")); } else { - return get_pointer(work.insert(xid, new DtxWorkRecord(xid, store)).first); + return ptr_map_ptr(work.insert(xid, new DtxWorkRecord(xid, store)).first); } } @@ -147,7 +147,7 @@ void DtxManager::timedout(const std::string& xid) if (i == work.end()) { QPID_LOG(warning, "Transaction timeout failed: no record for xid"); } else { - get_pointer(i)->timedout(); + ptr_map_ptr(i)->timedout(); //TODO: do we want to have a timed task to cleanup, or can we rely on an explicit completion? //timer.add(intrusive_ptr<TimerTask>(new DtxCleanup(60*30/*30 mins*/, *this, xid))); } |