#1357 - Regression in 11.15.2 - for nested Ebean.beginTransaction(TxScope.requiresNew()); ... where closed via ebeanServer.endTransaction(); rather than transaction.end()

This commit is contained in:
Rob Bygrave
2018-03-29 10:22:12 +13:00
parent 6b136248fa
commit b8c4e1c3d3
2 changed files with 63 additions and 1 deletions
@@ -843,7 +843,7 @@ public final class DefaultServer implements SpiServer, SpiEbeanServer {
*/
@Override
public void endTransaction() {
Transaction transaction = currentTransaction();
Transaction transaction = transactionManager.getInScope();
if (transaction != null) {
transaction.end();
}