dirkv       2004/07/04 10:41:15

  Modified:    pool/src/java/org/apache/commons/pool/impl
                        GenericKeyedObjectPool.java
  Log:
  Bugzilla Bug 29863
  - implement the "Keyed" version of the fix
  
  Revision  Changes    Path
  1.28      +3 -3      
jakarta-commons/pool/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
  
  Index: GenericKeyedObjectPool.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/pool/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- GenericKeyedObjectPool.java       4 Jul 2004 17:31:11 -0000       1.27
  +++ GenericKeyedObjectPool.java       4 Jul 2004 17:41:15 -0000       1.28
  @@ -744,8 +744,8 @@
                   // check if we can create one
                   // (note we know that the num sleeping is 0, else we wouldn't be 
here)
                   int active = getActiveCount(key);
  -                if ((_maxActive <= 0 || active < _maxActive) &&
  -                    (_maxTotal <= 0 || _totalActive + _totalIdle < _maxTotal)) {
  +                if ((_maxActive < 0 || active < _maxActive) &&
  +                    (_maxTotal < 0 || _totalActive + _totalIdle < _maxTotal)) {
                       Object obj = _factory.makeObject(key);
                       pair = new ObjectTimestampPair(obj);
                       newlyCreated = true;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to