FIX: Flush transaction if it is modified in callback

This commit is contained in:
Roland Praml committed 2022-10-25 10:58:06 +02:00
1 parent 7152cf656b
commit a82ba6d4aa
2 files changed
+24

No files matched your search

@@ -885,6 +885,9 @@ class JdbcTransaction implements SpiTransaction, TxnProfileEventCodes {
public final void preCommit() {
internalBatchFlush();
firePreCommit();
// we must flush the batch queue again, because the callback can
// modify current transaction
internalBatchFlush();
}
/**