diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2012-06-26 18:23:27 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2012-06-26 18:23:27 +0000 |
| commit | 1ab07197127e990da2c765ea0ffa5fd8ca47b7b6 (patch) | |
| tree | 18895db4a1059d984b92ab608d84c13d40df7401 /cpp/src/qpid | |
| parent | cbd4f9c22974db5f53b42a4326486ec8325b79cc (diff) | |
| download | qpid-python-1ab07197127e990da2c765ea0ffa5fd8ca47b7b6.tar.gz | |
QPID-3858: WIP - fixed a few logic errors and race conditions in the consume and transactional code
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1354149 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid')
| -rw-r--r-- | cpp/src/qpid/asyncStore/TxnHandleImpl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qpid/asyncStore/TxnHandleImpl.cpp b/cpp/src/qpid/asyncStore/TxnHandleImpl.cpp index af3a8f01cf..c5371f161c 100644 --- a/cpp/src/qpid/asyncStore/TxnHandleImpl.cpp +++ b/cpp/src/qpid/asyncStore/TxnHandleImpl.cpp @@ -110,7 +110,10 @@ void TxnHandleImpl::createLocalXid() { uuid_t uuid; + + // TODO: This call might not be thread safe - Valgrind's helgrind tool emits warnings for this: ::uuid_generate_random(uuid); + char uuidStr[37]; // 36-char uuid + trailing '\0' ::uuid_unparse(uuid, uuidStr); m_xid.assign(uuidStr); |
