Commit 66a0f063 66a0f063e2c6e67fe276ae9f8cdadb585f259a4e by Christian Gerdes

Age and RT will be calculated even if an exception occurs during

getData()
1 parent 9d2e5988
......@@ -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();
......