From 427bba4212d96e6b3df86286e02db2e2330b63cd Mon Sep 17 00:00:00 2001 From: Vlad Mihalcea Date: Mon, 13 Nov 2017 11:04:40 +0200 Subject: [PATCH] HHH-12086 - Batch order_inserts: flush during transaction causes incorrect insert ordering and subsequent constraint violation Fix indentation. --- .../src/main/java/org/hibernate/engine/spi/ActionQueue.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java b/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java index e4377a94e8..0daa934c39 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java @@ -1204,9 +1204,9 @@ public class ActionQueue { } } } - stored = true; - } while ( !stored ); + } + while ( !stored ); // Now, rebuild the insertions list. There is a batch for each entry in the name list. for ( BatchIdentifier rootIdentifier : latestBatches ) {