[rhmessaging-commits] rhmessaging commits: r2147 - store/trunk/cpp/lib/jrnl.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Tue Jun 10 12:02:34 EDT 2008
Author: kpvdr
Date: 2008-06-10 12:02:33 -0400 (Tue, 10 Jun 2008)
New Revision: 2147
Modified:
store/trunk/cpp/lib/jrnl/jcntl.cpp
Log:
Fix for possible cause of BZ450706: "txtest causes segmentation fault". Found unsafe use of std::set::find() which could be called while other threads may be perfroming std::set::insert() or std::set::erase().
Modified: store/trunk/cpp/lib/jrnl/jcntl.cpp
===================================================================
--- store/trunk/cpp/lib/jrnl/jcntl.cpp 2008-06-10 14:30:38 UTC (rev 2146)
+++ store/trunk/cpp/lib/jrnl/jcntl.cpp 2008-06-10 16:02:33 UTC (rev 2147)
@@ -388,6 +388,7 @@
bool
jcntl::is_txn_synced(const std::string& xid)
{
+ slock s(&_wr_mutex);
return _wmgr.is_txn_synced(xid);
}
More information about the rhmessaging-commits
mailing list