Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Products
/
LILOM
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
2
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
66a0f063
...
66a0f063e2c6e67fe276ae9f8cdadb585f259a4e
authored
2019-03-27 16:11:36 +0100
by
Christian Gerdes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Age and RT will be calculated even if an exception occurs during
getData()
1 parent
9d2e5988
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
LILOM Library/se/lil/om/OraMon.java
LILOM Library/se/lil/om/OraMon.java
View file @
66a0f06
...
...
@@ -360,8 +360,8 @@ public class OraMon {
}
// We do have the lock. Do the rest in a try catch everything and if we catch anything, re throw the catch but always release the lock.
Statement
stmt
=
null
;
try
{
long
startTSns
=
System
.
nanoTime
();
try
{
getDataCalls
++;
if
(
conn
==
null
)
open
();
if
(
conn
.
isClosed
())
open
();
...
...
@@ -455,6 +455,8 @@ public class OraMon {
}
catch
(
Exception
e2
)
{
// Dont care
}
lastFetchTSns
=
System
.
nanoTime
();
lastRTns
=
lastFetchTSns
-
startTSns
;
throw
(
e
);
}
finally
{
lock
.
unlock
();
...
...
Please
register
or
sign in
to post a comment