mirror of
https://github.com/apache/openjpa.git
synced 2025-03-01 05:59:14 +00:00
Use cached and possibly-reset timeout value instead of re-obtaining the configured value. Discovered potential bug while walking through code; no report or reproducer.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@585392 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
86f79ae640
commit
c2752e27da
@ -364,7 +364,7 @@ public class SelectImpl
|
||||
if (log.isWarnEnabled())
|
||||
log.warn(_loc.get("millis-query-timeout"));
|
||||
}
|
||||
stmnt.setQueryTimeout(fetch.getLockTimeout() / 1000);
|
||||
stmnt.setQueryTimeout(timeout / 1000);
|
||||
}
|
||||
rs = stmnt.executeQuery();
|
||||
} catch (SQLException se) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user