HHH-14900 Since the BatchBuilderImpl Service is shared, mutable field jdbcBatchSize should be marked volatile

This commit is contained in:
Sanne Grinovero 2021-10-25 17:00:50 +01:00 committed by Sanne Grinovero
parent 8a2869a09a
commit 9ecd1799a0
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ import org.hibernate.service.spi.Manageable;
*/
public class BatchBuilderImpl implements BatchBuilder, Configurable, Manageable, BatchBuilderMXBean {
private int jdbcBatchSize;
private volatile int jdbcBatchSize;
/**
* Constructs a BatchBuilderImpl