File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
hibernate-core/src/main/java/org/hibernate/sql/exec/internal/lock Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 99import org .hibernate .LockMode ;
1010import org .hibernate .LockOptions ;
1111import org .hibernate .Locking ;
12- import org .hibernate .Timeouts ;
1312import org .hibernate .engine .spi .CollectionKey ;
1413import org .hibernate .engine .spi .EffectiveEntityGraph ;
1514import org .hibernate .engine .spi .EntityKey ;
@@ -202,7 +201,7 @@ private TableLock resolveTableLock(
202201 private QueryOptions buildLockingOptions (ExecutionContext executionContext ) {
203202 final QueryOptionsImpl lockingQueryOptions = new QueryOptionsImpl ();
204203 lockingQueryOptions .getLockOptions ().setLockMode ( lockMode );
205- lockingQueryOptions .getLockOptions ().setTimeout ( Timeouts . WAIT_FOREVER );
204+ lockingQueryOptions .getLockOptions ().setTimeout ( lockTimeout );
206205 lockingQueryOptions .getLockOptions ().setFollowOnStrategy ( Locking .FollowOn .DISALLOW );
207206 if ( executionContext .getQueryOptions ().isReadOnly () == Boolean .TRUE ) {
208207 lockingQueryOptions .setReadOnly ( true );
You can’t perform that action at this time.
0 commit comments