Revision 5943
Added by berkley over 13 years ago
IdentifierManager.java | ||
---|---|---|
820 | 820 |
{ |
821 | 821 |
ObjectList ol = new ObjectList(); |
822 | 822 |
int total = 0; |
823 |
DBConnection dbConn = null; |
|
824 |
int serialNumber = -1; |
|
823 | 825 |
|
824 | 826 |
try |
825 | 827 |
{ |
... | ... | |
876 | 878 |
} |
877 | 879 |
} |
878 | 880 |
|
879 |
DBConnection dbConn = DBConnectionPool.getDBConnection("IdentifierManager.createMapping");
|
|
880 |
int serialNumber = dbConn.getCheckOutSerialNumber();
|
|
881 |
dbConn = DBConnectionPool.getDBConnection("IdentifierManager.querySystemMetadata");
|
|
882 |
serialNumber = dbConn.getCheckOutSerialNumber(); |
|
881 | 883 |
PreparedStatement stmt = dbConn.prepareStatement(sql); |
882 | 884 |
|
883 | 885 |
if(f1 && f2 && f3) |
... | ... | |
995 | 997 |
e.printStackTrace(); |
996 | 998 |
System.out.println("Error querying system metadata: " + e.getMessage()); |
997 | 999 |
} |
1000 |
finally |
|
1001 |
{ |
|
1002 |
// Return database connection to the pool |
|
1003 |
DBConnectionPool.returnDBConnection(dbConn, serialNumber); |
|
1004 |
} |
|
998 | 1005 |
|
999 | 1006 |
ol.setStart(start); |
1000 | 1007 |
ol.setCount(ol.sizeObjectInfoList()); |
Also available in: Unified diff
think I fixed the connection problem. one connection in IdentifierManager was being leaked. added more debug info in case it happens again