infinispan/infinispan — pull request #1468 by tivv (2012-11-16 00:22:20+00:00)
Title: Fix race condition in BDB store transaction prepare

Currently the prepare method creates a transaction and then clears all of them. This leads to NPE if two prepares are run concurrently (one thread can clear transaction for another). The fix makes it clear only own transaction