Merge pull request #2867 from FOCONIS/fix-flush-transaction

FIX: Flush transaction if it is modified in callback
This commit is contained in:
Rob Bygrave authored and GitHub committed 2022-10-26 17:23:05 +13:00
commit faa58f0fe4
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();
}
/**