db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject cvs commit: db-torque/src/java/org/apache/torque/oid IDBroker.java
Date Sun, 22 May 2005 10:57:51 GMT
tfischer    2005/05/22 03:57:51

  Modified:    src/java/org/apache/torque/oid IDBroker.java
  Log:
  The method storeIds is now synchronized.
  This is necessary because the method can be accessed simultaneously by the foreground thread
and the housekeeper thread.
  Thanks to Michael Heller and David Ware for the patch and diagnostics.
  
  Revision  Changes    Path
  1.31      +2 -2      db-torque/src/java/org/apache/torque/oid/IDBroker.java
  
  Index: IDBroker.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/java/org/apache/torque/oid/IDBroker.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- IDBroker.java	31 Jan 2005 19:43:53 -0000	1.30
  +++ IDBroker.java	22 May 2005 10:57:51 -0000	1.31
  @@ -611,7 +611,7 @@
        * @param connection a Connection
        * @exception Exception a generic exception.
        */
  -    private void storeIDs(String tableName,
  +    private synchronized void storeIDs(String tableName,
                             boolean adjustQuantity,
                             Connection connection)
           throws Exception
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message