logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwom...@apache.org
Subject cvs commit: jakarta-log4j/src/java/org/apache/log4j/jdbc JDBCAppender.java
Date Wed, 19 Feb 2003 04:55:57 GMT
mwomack     2003/02/18 20:55:57

  Modified:    src/java/org/apache/log4j/jdbc Tag: v1_2-branch
                        JDBCAppender.java
  Log:
  Fix for #14827, memory leak related to the "removes" buffer.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.6.2.3   +6 -0      jakarta-log4j/src/java/org/apache/log4j/jdbc/JDBCAppender.java
  
  Index: JDBCAppender.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/jdbc/JDBCAppender.java,v
  retrieving revision 1.6.2.2
  retrieving revision 1.6.2.3
  diff -u -r1.6.2.2 -r1.6.2.3
  --- JDBCAppender.java	12 Jun 2002 21:29:57 -0000	1.6.2.2
  +++ JDBCAppender.java	19 Feb 2003 04:55:56 -0000	1.6.2.3
  @@ -240,7 +240,13 @@
   			   ErrorCode.FLUSH_FAILURE);
         }
       }
  +    
  +    // remove from the buffer any events that were reported
       buffer.removeAll(removes);
  +    
  +    // clear the buffer of reported events
  +    removes.clear();
  +    
       //buffer.clear();
     }
   
  
  
  

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


Mime
View raw message