fixed concurrency problem uncovered during JMH-based throughput testing (Act 4 - which is really Act 2)
This commit is contained in:
parent
2b65c73fb7
commit
ecfb3da071
|
@ -188,11 +188,12 @@ public class ConcreteSqmSelectQueryPlan<R> implements SelectQueryPlan<R> {
|
|||
synchronized ( this ) {
|
||||
localCopy = cacheableSqmInterpretation;
|
||||
if ( localCopy == null ) {
|
||||
cacheableSqmInterpretation = localCopy = buildCacheableSqmInterpretation(
|
||||
localCopy = buildCacheableSqmInterpretation(
|
||||
sqm,
|
||||
domainParameterXref,
|
||||
executionContext
|
||||
);
|
||||
cacheableSqmInterpretation = localCopy;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue