diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2014-01-09 17:26:10 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2014-01-09 17:26:10 +0000 |
| commit | 27a33cae759d317658a46fa5afe22adaa4aed594 (patch) | |
| tree | e5bdc059a322b4f73a9c171e82fefe14dd7e0497 /cpp/src/qpid/linearstore/MessageStoreImpl.h | |
| parent | 01eb49eba283d02dd7291eff5b276e2d3a638521 (diff) | |
| download | qpid-python-27a33cae759d317658a46fa5afe22adaa4aed594.tar.gz | |
QPID-5460: [linearstore] Recovery of store which contains prepared but incomplete transactions results in message loss
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1556892 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/linearstore/MessageStoreImpl.h')
| -rw-r--r-- | cpp/src/qpid/linearstore/MessageStoreImpl.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/cpp/src/qpid/linearstore/MessageStoreImpl.h b/cpp/src/qpid/linearstore/MessageStoreImpl.h index 95667be82e..3157b9be9d 100644 --- a/cpp/src/qpid/linearstore/MessageStoreImpl.h +++ b/cpp/src/qpid/linearstore/MessageStoreImpl.h @@ -235,18 +235,7 @@ class MessageStoreImpl : public qpid::broker::MessageStore, public qpid::managem } void chkTplStoreInit(); - // debug aid for printing XIDs that may contain non-printable chars - static std::string xid2str(const std::string xid) { - std::ostringstream oss; - oss << std::hex << std::setfill('0'); - for (unsigned i=0; i<xid.size(); i++) { - if (isprint(xid[i])) - oss << xid[i]; - else - oss << "/" << std::setw(2) << (int)((char)xid[i]); - } - return oss.str(); - } + static std::string str2hexnum(const std::string& str); public: typedef boost::shared_ptr<MessageStoreImpl> shared_ptr; |
