Update of /cvsroot/firebug/firebug/project/java/src/org/firebug/database
In directory sc8-pr-cvs1:/tmp/cvs-serv16587/src/org/firebug/database
Modified Files:
MysqlDBHandler.java
Log Message:
Working out a bug in db connection.
Index: MysqlDBHandler.java
===================================================================
RCS file: /cvsroot/firebug/firebug/project/java/src/org/firebug/database/MysqlDBHandler.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** MysqlDBHandler.java 21 May 2003 23:30:40 -0000 1.6
--- MysqlDBHandler.java 21 May 2003 23:51:51 -0000 1.7
***************
*** 69,72 ****
--- 69,74 ----
} else {
this.use_c_pool = false;
+ connectionqueue = new LinkedList();
+ initializeCQueue(1);
}
}
***************
*** 158,165 ****
* popped off the top.
*/
- connectionqueue.add(connection);
! if (debug) {
! System.out.println("Connection returned to queue...");
}
--- 160,171 ----
* popped off the top.
*/
! if (use_c_pool) {
! connectionqueue.add(connection);
! if (debug) {
! System.out.println("Connection returned to queue...");
! }
! } else {
! closeConnection(connection);
}
***************
*** 248,253 ****
con.close();
closed = true;
! if (debug)
System.out.println("Connection closed.");
} catch (SQLException sqle) {
System.out.println("Can't close the connection.");
--- 254,260 ----
con.close();
closed = true;
! if (debug) {
System.out.println("Connection closed.");
+ }
} catch (SQLException sqle) {
System.out.println("Can't close the connection.");
|