tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves AccessLogValve.java
Date Thu, 25 Oct 2001 20:07:26 GMT
remm        01/10/25 13:07:26

  Modified:    catalina/src/share/org/apache/catalina/valves Tag:
                        tomcat_40_branch AccessLogValve.java
  Log:
  - Port back additional tweaks for potential thread safety problems.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.10.2.2  +6 -4      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves/AccessLogValve.java
  
  Index: AccessLogValve.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves/AccessLogValve.java,v
  retrieving revision 1.10.2.1
  retrieving revision 1.10.2.2
  diff -u -r1.10.2.1 -r1.10.2.2
  --- AccessLogValve.java	2001/10/23 23:08:10	1.10.2.1
  +++ AccessLogValve.java	2001/10/25 20:07:26	1.10.2.2
  @@ -128,7 +128,7 @@
    *
    * @author Craig R. McClanahan
    * @author Jason Brittain
  - * @version $Revision: 1.10.2.1 $ $Date: 2001/10/23 23:08:10 $
  + * @version $Revision: 1.10.2.2 $ $Date: 2001/10/25 20:07:26 $
    */
   
   public final class AccessLogValve
  @@ -612,9 +612,11 @@
               // If the date has changed, switch log files
               if (!dateStamp.equals(tsDate)) {
                   synchronized (this) {
  -                    close();
  -                    dateStamp = tsDate;
  -                    open();
  +                    if (!dateStamp.equals(tsDate)) {
  +                        close();
  +                        dateStamp = tsDate;
  +                        open();
  +                    }
                   }
               }
           }
  
  
  

Mime
View raw message