neo4j/community — pull request #660 by jakewins (2012-06-30 14:03:48+00:00)
Title: Aligned PlaceboTransaction behavior with that of TopLevelTransaction

PlaceboTransaction currently does not roll back the parent transaction per default. This means that code like:

Transaction tx = db.beginTx();
try {
// do work
throw new Exception("Ajdå");
tx.success();
} finally {
tx.finish();
}

Will not work as expected if we are already in a transaction context, and the exception thrown does, for some reason, not propagate to the parent tx code.